|
lwpa
0.1.0
LightWeight Platform Abstraction (lwpa)
|
View other versions:
|
(Not for direct usage) A memory pool description structure.
Do not declare or use this structure directly; instead, use LWPA_MEMPOOL_DECLARE(), LWPA_MEMPOOL_DEFINE() and the lwpa_mempool_* macros to interact with it.
Data Fields | |
| const size_t | elem_size |
| The size of each element. | |
| const size_t | pool_size |
| The number of elements in the pool. | |
| LwpaMempool * | freelist |
| The current freelist. | |
| LwpaMempool *const | list |
| The array of mempool list structs. | |
| size_t | current_used |
| The number of pool elements that have currently been allocated. | |
| void *const | pool |
| The actual pool memory. | |