src/cx/mempool.h

changeset 1329
343eac5ac824
parent 1328
2cf66dee40b8
equal deleted inserted replaced
1328:2cf66dee40b8 1329:343eac5ac824
96 /** 96 /**
97 * The basic structure of a memory pool. 97 * The basic structure of a memory pool.
98 * Should be the first member of an actual memory pool implementation. 98 * Should be the first member of an actual memory pool implementation.
99 */ 99 */
100 struct cx_mempool_s { 100 struct cx_mempool_s {
101 /** The used allocator, initialized with the cxDefaultAllocator. */
102 const CxAllocator * const base_allocator;
103
101 /** The provided allocator. */ 104 /** The provided allocator. */
102 const CxAllocator *allocator; 105 const CxAllocator *allocator;
103 106
104 /** Array of pooled memory. */ 107 /** Array of pooled memory. */
105 void **data; 108 void **data;

mercurial