cp_mempool

Section: libcprops - cp_mempool (3)
Updated: SEPTEMBER 2006
Index Return to Main Contents
 

NAME

cp_shared_mempool_free - return memory block to a shared memory pool

 

SYNOPSIS

#include <cprops/mempool.h>

void cp_shared_mempool_free(cp_shared_mempool *pool, void *p);

 

DESCRIPTION

cp_shared_mempool_free returns a memory chunk obtained from cp_shared_mempool_alloc(3) or cp_mempool_calloc(3) to the memory pool for reuse. Note that this does not actually release the memory block to the operating system. Memory allocated by cp_shared_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_shared_mempool_alloc(3), cp_mempool(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 17:58:11 GMT, September 08, 2006
SourceForge.net Logo