Open Lighting Architecture
Latest Git
|
MemoryBlockPool. This class is not thread safe.
block_size | the size of blocks to use. |
Public Member Functions | |
MemoryBlockPool (unsigned int block_size=DEFAULT_BLOCK_SIZE) | |
MemoryBlock * | Allocate () |
void | Release (MemoryBlock *block) |
unsigned int | FreeBlocks () const |
void | Purge () |
void | Purge (unsigned int remaining) |
unsigned int | BlocksAllocated () const |
Static Public Attributes | |
static const unsigned int | DEFAULT_BLOCK_SIZE = 1024 |