cp_multimap_use_mempool(3)
| cp_multimap(3) | libcprops - cp_multimap | cp_multimap(3) |
NAME
cp_multimap_use_mempool, cp_multimap_share_mempool - use a memory pool for internal multimap allocations
SYNOPSIS
#include <cprops/multimap.h>
int cp_multimap_use_mempool(cp_multimap *tree,
cp_mempool *pool);
int cp_multimap_share_mempool(cp_multimap *tree,
cp_shared_mempool *pool);
DESCRIPTION
cp_multimap_use_mempool sets the map to use given mempool or allocate a new one if pool is NULL.
cp_multimap_share_mempool sets the map to use a shared memory pool.
RETURN VALUE
cp_multimap_use_mempool and cp_multimap_share_mempool return zero on success or non-zero on failure. Faliures may be due to locking errors, memory allocation failure, or if the map is not empty when attempting to assign a mempool.
| OCT 2007 | libcprops.0.1.7 |
