#include <ctlnew.h>
Data Fields | |
struct ctl_pool_base_node * | freelist |
struct ctl_pool_base_block * | blocks |
struct ctl_pool_base * | poolList |
const char * | name |
size_t | unit |
size_t | delta |
size_t | cFree |
size_t | cAlloc |
Some debug data is maintained in parallel with the data, in case you wanted to dump these, and also counts of free/allocated data are maintained with a label in case you wanted to do something 'intelligent' at runtime like pre-grow certain pools you know will rapidly jump to some absurd size, or will gradually grow to that size over time and you want to simply reserve it together.
Definition at line 308 of file ctlnew.h.
struct ctl_pool_base_node* ctl_pool_base::freelist [read] |
Free list
Definition at line 310 of file ctlnew.h.
Referenced by ctl_pool_base_alloc(), ctl_pool_base_free(), ctl_pool_base_grow(), and ctl_pool_base_init().
struct ctl_pool_base_block* ctl_pool_base::blocks [read] |
Keep track of allocated blocks
Definition at line 311 of file ctlnew.h.
Referenced by ctl_pool_base_destroy(), ctl_pool_base_grow(), and ctl_pool_base_init().
struct ctl_pool_base* ctl_pool_base::poolList [read] |
const char* ctl_pool_base::name |
What this was named on creation
Definition at line 313 of file ctlnew.h.
Referenced by ctl_destroy_all_pools(), and ctl_pool_base_init().
size_t ctl_pool_base::unit |
Unit size
Definition at line 314 of file ctlnew.h.
Referenced by ctl_destroy_all_pools(), ctl_pool_base_grow(), and ctl_pool_base_init().
size_t ctl_pool_base::delta |
Grow delta rate
Definition at line 315 of file ctlnew.h.
Referenced by ctl_pool_base_alloc(), and ctl_pool_base_init().
size_t ctl_pool_base::cFree |
Total free blocks
Definition at line 316 of file ctlnew.h.
Referenced by ctl_destroy_all_pools(), ctl_pool_base_alloc(), ctl_pool_base_free(), ctl_pool_base_grow(), and ctl_pool_base_init().
size_t ctl_pool_base::cAlloc |
Total allocated blocks
Definition at line 317 of file ctlnew.h.
Referenced by ctl_destroy_all_pools(), ctl_pool_base_alloc(), ctl_pool_base_free(), and ctl_pool_base_init().