Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::FiberAllocator Struct Reference

Explicit allocator for future fiber scheduler storage. More...

#include <Fibers.h>

Public Member Functions

 FiberAllocator (const FiberAllocator &)=delete
 
FiberAllocatoroperator= (const FiberAllocator &)=delete
 
 FiberAllocator (FiberAllocator &&)=delete
 
FiberAllocatoroperator= (FiberAllocator &&)=delete
 
Result createFixed (Span< char > storage)
 
Result createVirtual (FiberAllocatorVirtualOptions options)
 
Result createMalloc ()
 
Result createPolymorphic (FiberAllocatorInterface &customAllocatorInterface)
 
Result validateClose () const
 
Result close ()
 
void * allocate (const void *owner, size_t numBytes, size_t alignment)
 
void release (void *memory)
 
FiberAllocatorMode mode () const
 
FiberAllocatorStatistics statistics () const
 
bool isOpen () const
 
size_t used () const
 
size_t capacity () const
 
size_t peakUsed () const
 
size_t failedAllocationSize () const
 
size_t reservedBytes () const
 
size_t committedBytes () const
 

Static Public Member Functions

static void releaseFromAnyAllocator (void *memory)
 

Detailed Description

Explicit allocator for future fiber scheduler storage.


The documentation for this struct was generated from the following file: