Data Fields | |
| const char * | name |
| Name of the mempool backend. | |
| void *(* | init )(const char *context, const char *options, va_list args) |
| Function to initialize the backend. | |
| void(* | free )(void *data, void *element) |
| Function to free memory back to the mempool. | |
| void *(* | alloc )(void *data, unsigned int size) |
| Function to allocate memory from the mempool. | |
| void *(* | realloc )(void *data, void *element, unsigned int size) |
| Function to change the size of a block of memory that is currently allocated. | |
| void(* | garbage_collect )(void *data) |
| Function to trigger a garbage collection; can be NULL if the feature isn't available in the backend. | |
| void(* | statistics )(void *data) |
| Report statistics on the content of the mempool; can be NULL if the feature isn't available in the backend. | |
| void(* | shutdown )(void *data) |
| Function to destroy the backend, freeing memory back to the operating system. | |
| void(* | repack )(void *data, Eina_Mempool_Repack_Cb cb, void *cb_data) |
| Function to optimize the placement of objects in the mempool (it's different from garbage_collect); can be NULL if the feature isn't available in the backend. More... | |
| Eina_Bool(* | from )(void *data, void *element) |
| Function to check is a valid element from a mempool. More... | |
| Eina_Iterator *(* | iterator )(void *data) |
| Function to get an Eina_Iterator that will walk every allocated element in the pool. More... | |
| void(* _Eina_Mempool_Backend::repack) (void *data, Eina_Mempool_Repack_Cb cb, void *cb_data) |
Function to optimize the placement of objects in the mempool (it's different from garbage_collect); can be NULL if the feature isn't available in the backend.
| Eina_Bool(* _Eina_Mempool_Backend::from) (void *data, void *element) |
Function to check is a valid element from a mempool.
| Eina_Iterator*(* _Eina_Mempool_Backend::iterator) (void *data) |
Function to get an Eina_Iterator that will walk every allocated element in the pool.
@use eina_mempool_iterator_new