cp_mempool_free(3)
| cp_mempool(3) | libcprops - cp_mempool | cp_mempool(3) |
NAME
cp_mempool_free - return memory block to a memory pool
SYNOPSIS
#include <cprops/mempool.h>
int cp_mempool_free(cp_mempool * const pool, void *data);
DESCRIPTION
cp_mempool_free returns a memory chunk obtained from cp_mempool_alloc or cp_mempool_calloc to the memory pool for reuse. Note that this does not actually release the memory block to the operating system. Memory allocated by cp_mempool is only returned to the operating system on pool destruction.
RETURN VALUE
zero on success or non-zero on locking failure if COLLECTION_MODE_NOSYNC is not set.
SEE ALSO
cp_mempool_create(3), cp_mempool_alloc(3), cp_mempool_destroy(3), cp_shared_mempool(3)
| SEPTEMBER 2006 | libcprops.0.1.6 |
