42#if NEBULA_MEMORY_STATS
43 uint GetAllocCount()
const;
50#if NEBULA_MEMORY_STATS
52PosixMemoryPool::GetAllocCount()
const
FIXME: IMPLEMENT ME!
Definition posixmemorypool.h:17
bool IsPoolBlock(void *ptr) const
return true if block is owned by this pool
Definition posixmemorypool.h:113
uint GetNumBlocks() const
get number of allocated blocks in pool
Definition posixmemorypool.h:73
void Free(void *ptr)
deallocate a block from the pool
Definition posixmemorypool.cc:52
void Setup(Memory::HeapType heapType, uint blockSize, uint numBlocks)
setup the memory pool
Definition posixmemorypool.cc:33
static uint ComputeAlignedBlockSize(uint blockSize)
compute the actual block size including alignment and management data
Definition posixmemorypool.h:63
uint GetAlignedBlockSize() const
get aligned block size
Definition posixmemorypool.h:93
~PosixMemoryPool()
destructor
Definition posixmemorypool.cc:23
void * Alloc()
allocate a block from the pool (NOTE: returns 0 if pool exhausted!)
Definition posixmemorypool.cc:42
uint GetPoolSize() const
get pool size
Definition posixmemorypool.h:103
PosixMemoryPool()
constructor
Definition posixmemorypool.cc:15
uint GetBlockSize() const
get block size
Definition posixmemorypool.h:83
void __cdecl n_error(const char *msg,...)
This function is called when a serious situation is encountered which requires abortion of the applic...
Definition debug.cc:138
HeapType
Heap types are defined here.
Definition osxmemoryconfig.h:25
Posix implemention of a read-many write-few lock.
Definition posixsysfunc.cc:21
unsigned int uint
Definition types.h:31