Table of Contents


qpool_create - allocate a distributed memory pool


#include <qthread/qpool.h>

qpool *
qpool_create (const size_t item_size);

qpool *
qpool_create_aligned (const size_t item_size, const size_t alignment);


These functions initialize qpool distributed memory pools. The qpool_create_aligned() function allows the alignment to be specified, such that all allocated elements will align along specific alignment boundaries. The alignment value is expected to be a power of two.

See Also

qpool_destroy(3) , qpool_alloc(3) , qpool_free(3)

Table of Contents