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. More... | |
void(* | free )(void *data, void *element) |
Function to free memory back to the mempool. More... | |
void *(* | alloc )(void *data, unsigned int size) |
Function to allocate memory from the mempool. More... | |
void *(* | realloc )(void *data, void *element, unsigned int size) |
Function to change the size of a block of memory that is currently allocated. More... | |
void(* | garbage_collect )(void *data) |
Function to trigger a garbage collection; can be NULL if the feature isn't available in the backend. More... | |
void(* | statistics )(void *data) |
Report statistics on the content of the mempool; can be NULL if the feature isn't available in the backend. More... | |
void(* | shutdown )(void *data) |
Function to destroy the backend, freeing memory back to the operating system. More... | |
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 *(* | alloc_near )(void *data, void *after, void *before, unsigned int size) |
Function to allocate memory near already allocated memory. More... | |
void*(* _Eina_Mempool_Backend::init) (const char *context, const char *options, va_list args) |
Function to initialize the backend.
void(* _Eina_Mempool_Backend::free) (void *data, void *element) |
Function to free memory back to the mempool.
void*(* _Eina_Mempool_Backend::alloc) (void *data, unsigned int size) |
Function to allocate memory from the mempool.
void*(* _Eina_Mempool_Backend::realloc) (void *data, void *element, unsigned int size) |
Function to change the size of a block of memory that is currently allocated.
void(* _Eina_Mempool_Backend::garbage_collect) (void *data) |
Function to trigger a garbage collection; can be NULL if the feature isn't available in the backend.
void(* _Eina_Mempool_Backend::statistics) (void *data) |
Report statistics on the content of the mempool; can be NULL if the feature isn't available in the backend.
void(* _Eina_Mempool_Backend::shutdown) (void *data) |
Function to destroy the backend, freeing memory back to the operating system.
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.
void*(* _Eina_Mempool_Backend::alloc_near) (void *data, void *after, void *before, unsigned int size) |
Function to allocate memory near already allocated memory.