#include <MemoryAllocators.h>
Inheritance diagram for ark::SimplePool:
Public Member Functions | |
SimplePool () | |
SimplePool (unsigned buffSz, unsigned numBuffs) | |
virtual | ~SimplePool () |
void | initialize (unsigned buffSz, unsigned numBuffs) |
void | uninitialize () |
bool | isInitialized () const |
unsigned char * | alloc (unsigned) |
bool | dealloc (unsigned char *, unsigned) |
unsigned | maxBufferSize () const |
bool | isThreadSafe () const |
void | setEmergencyGate (MemoryGate<> *eg) |
Private Types | |
typedef std::vector< unsigned char * > | BufferStack |
Private Attributes | |
BufferStack | _buffStack |
unsigned | _buffSize |
MemoryGate * | _emergencyGate |
Classes | |
struct | BadDealloc |
|
|
|
|
|
|
|
|
|
Implements ark::Allocator. |
|
Implements ark::Allocator. |
|
|
|
|
|
Implements ark::Allocator. |
|
Implements ark::Allocator. |
|
setEmergencyGate The allocator can have a gate to attempt deallocation requests which it cannot handle. By default no emergency gate is installed.
|
|
|
|
|
|
|
|
|