CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
This structure represents the current state of a memory pool. More...
Data Fields | |
char | name_str [MAX_POOL_NAME_LENGTH] |
Name of pool, used for informational purposes only. | |
int | pool_item_data_byte_size |
Size of the data portion of each item in bytes. | |
int | pool_item_byte_size |
Size of each item in bytes (sizeof(CdiPoolItem) + data portion). | |
int | pool_item_count |
Number of items in the pool array. | |
int | pool_grow_count |
Number of pool items the pool array may be increased by. | |
int | pool_cur_grow_count |
Number of times the current pool has been increased. | |
int | pool_max_grow_count |
The maximum number of times the pool can be increased. | |
CdiPoolItemOperatorFunction | init_fn_ptr |
Pointer to initialization function that this memory pool may have. | |
void * | init_context_ptr |
Pointer used by initialization function that this memory pool may have. | |
bool | is_existing_buffer |
Using an existing buffer. Don't free the memory when pool destroyed. | |
CdiSinglyLinkedList | allocated_buffer_list |
Linked list of memory pools. | |
CdiSinglyLinkedList | free_list |
List of free items. | |
CdiList | in_use_list |
Doubly linked list of items currently in use. | |
CdiCsID | lock |
Lock used to protect multi-thread access the pool. | |
CdiPoolCallback | pool_cb_ptr |
Pointer to user-provided callback function. | |
This structure represents the current state of a memory pool.