Ark Server API (ASA) - Wiki
|
#include <MemStack.h>
Public Types | |
enum | { PageSize = 64 * 1024 , SmallPageSize = 1024-16 } |
typedef TLockFreeFixedSizeAllocator< PageSize, PLATFORM_CACHE_LINE_SIZE, FThreadSafeCounter > | TPageAllocator |
Public Member Functions | |
~FPageAllocator () | |
void * | Alloc () |
void | Free (void *Mem) |
void * | AllocSmall () |
void | FreeSmall (void *Mem) |
uint64 | BytesUsed () |
uint64 | BytesFree () |
void | LatchProtectedMode () |
Static Public Member Functions | |
static FPageAllocator & | Get () |
Private Member Functions | |
FPageAllocator () | |
Static Private Member Functions | |
static FPageAllocator & | Construct () |
Private Attributes | |
TPageAllocator | TheAllocator |
Static Private Attributes | |
static FPageAllocator * | Instance |
Definition at line 35 of file MemStack.h.
typedef TLockFreeFixedSizeAllocator<PageSize, PLATFORM_CACHE_LINE_SIZE, FThreadSafeCounter> FPageAllocator::TPageAllocator |
Definition at line 46 of file MemStack.h.
Enumerator | |
---|---|
PageSize | |
SmallPageSize |
Definition at line 38 of file MemStack.h.
FPageAllocator::~FPageAllocator | ( | ) |
|
private |
void * FPageAllocator::Alloc | ( | ) |
void * FPageAllocator::AllocSmall | ( | ) |
uint64 FPageAllocator::BytesFree | ( | ) |
uint64 FPageAllocator::BytesUsed | ( | ) |
|
staticprivate |
|
static |
void FPageAllocator::LatchProtectedMode | ( | ) |
|
staticprivate |
Definition at line 61 of file MemStack.h.
|
private |
Definition at line 68 of file MemStack.h.