Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FPageAllocator Class Reference

#include <MemStack.h>

+ Collaboration diagram for FPageAllocator:

Public Types

enum  { PageSize = 64 * 1024 , SmallPageSize = 1024-16 }
 
typedef TLockFreeFixedSizeAllocator< PageSize, PLATFORM_CACHE_LINE_SIZE, FThreadSafeCounterTPageAllocator
 

Public Member Functions

 ~FPageAllocator ()
 
voidAlloc ()
 
void Free (void *Mem)
 
voidAllocSmall ()
 
void FreeSmall (void *Mem)
 
uint64 BytesUsed ()
 
uint64 BytesFree ()
 
void LatchProtectedMode ()
 

Static Public Member Functions

static FPageAllocatorGet ()
 

Private Member Functions

 FPageAllocator ()
 

Static Private Member Functions

static FPageAllocatorConstruct ()
 

Private Attributes

TPageAllocator TheAllocator
 

Static Private Attributes

static FPageAllocatorInstance
 

Detailed Description

Definition at line 35 of file MemStack.h.

Member Typedef Documentation

◆ TPageAllocator

Member Enumeration Documentation

◆ anonymous enum

Enumerator
PageSize 
SmallPageSize 

Definition at line 38 of file MemStack.h.

Constructor & Destructor Documentation

◆ ~FPageAllocator()

FPageAllocator::~FPageAllocator ( )

◆ FPageAllocator()

FPageAllocator::FPageAllocator ( )
private

Member Function Documentation

◆ Alloc()

void * FPageAllocator::Alloc ( )

◆ AllocSmall()

void * FPageAllocator::AllocSmall ( )

◆ BytesFree()

uint64 FPageAllocator::BytesFree ( )

◆ BytesUsed()

uint64 FPageAllocator::BytesUsed ( )

◆ Construct()

static FPageAllocator & FPageAllocator::Construct ( )
staticprivate

◆ Free()

void FPageAllocator::Free ( void * Mem)

◆ FreeSmall()

void FPageAllocator::FreeSmall ( void * Mem)

◆ Get()

static FPageAllocator & FPageAllocator::Get ( )
static

◆ LatchProtectedMode()

void FPageAllocator::LatchProtectedMode ( )

Member Data Documentation

◆ Instance

FPageAllocator* FPageAllocator::Instance
staticprivate

Definition at line 61 of file MemStack.h.

◆ TheAllocator

TPageAllocator FPageAllocator::TheAllocator
private

Definition at line 68 of file MemStack.h.


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