cp_mempool *cp_mempool_create(const size_t chunksize);
cp_mempool *cp_mempool_create_by_option(const int mode,
const size_t chunksize,
size_t multiple);
cp_mempool_create_by_option allows setting mode bit flags and the number of chunksize items to fit in an internal allocation block.
When creating a pool with cp_mempool_create, allocation and deallocation operations, i.e. cp_mempool_alloc(3) and cp_mempool_free(3), are not synchronized by default. If you choose to share a memory pool between different threads, unset the COLLECTION_MODE_NOSYNC mode bit or create the pool using cp_mempool_create_by_mode.
This document was created by
man2html,
using the manual pages. Time: 17:58:11 GMT, September 08, 2006 |