#include <pool.h>
Public Member Functions | |
Pool (size_t, size_t) | |
~Pool () | |
size_t | maxAlloc () const |
void * | allocate (size_t) |
void | deallocate (void *, size_t) |
Static Public Member Functions | |
static void | allowReport () |
static size_t | numInstances () |
static void | memoryReport () |
Private Member Functions | |
void * | newBlock (size_t m) |
void | reportDestruction () |
Private Attributes | |
const size_t | d_atomSize |
const size_t | d_defaultRequest |
const size_t | d_maxAlloc |
const size_t | d_alignSize |
const size_t | d_instance |
void * | d_free [constants::sizeBits] |
size_t | d_used [constants::sizeBits] |
size_t | d_allocated [constants::sizeBits] |
std::vector< void * > | d_systemAllocs |
Static Private Attributes | |
static size_t | instances = 0 |
static size_t | constructions = 0 |
static const char * | logfile = "pool.log" |
static bool | done = false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|