Open Lighting Architecture  0.10.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Attributes | List of all members
ola::io::MemoryBlockPool Class Reference

Detailed Description

MemoryBlockPool. This class is not thread safe.

Parameters
block_sizethe size of blocks to use.

Public Member Functions

 MemoryBlockPool (unsigned int block_size=DEFAULT_BLOCK_SIZE)
 
MemoryBlockAllocate ()
 
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
 

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