ucx
UAP Common Extensions
|
The basic structure of a memory pool. More...
#include <mempool.h>
Data Fields | |
CxAllocator const * | allocator |
The provided allocator. | |
cx_destructor_func | auto_destr |
A destructor that shall be automatically registered for newly allocated memory. | |
struct cx_mempool_memory_s ** | data |
Array of pooled memory. | |
size_t | size |
Number of pooled memory items. | |
size_t | capacity |
Memory pool capacity. | |
The basic structure of a memory pool.
Should be the first member of an actual memory pool implementation.
cx_destructor_func cx_mempool_s::auto_destr |
A destructor that shall be automatically registered for newly allocated memory.
This destructor MUST NOT free the memory.