Data Fields | |
| mp_chunk_t * | in_chunk |
| union { | |
| mp_allocated_t * next_free | |
| char mem [1] | |
| ALIGNMENT_TYPE _dummy | |
| } | u |
The chunk that this item is allocated in. This adds overhead to each allocated item, thus making this implementation inappropriate for very small items.
Referenced by mp_pool_get(), and mp_pool_release().
If this item is free, the next item on the free list.
Referenced by mp_pool_get(), and mp_pool_release().
| char mp_allocated_t::mem[1] |
If this item is not free, the actual memory contents of this item. (Not actual size.)
| ALIGNMENT_TYPE mp_allocated_t::_dummy |
An extra element to the union to insure correct alignment.
1.5.6