Function mpool_req

Function Documentation

void *mpool_req(struct mpool *the_pool)

Request a memory chunk from a mpool.

If no memory of the requested type is currently available, wait indefinitely.

Parameters:

the_pool – The mpool handle.

Returns:

The allocated chunk, or NULL if an error occurred.