Function mpool_init

Function Documentation

struct mpool * mpool_init (struct mpool *pool_in, const struct mpool_params *params) RCSW_WUR

Initialize a mpool.

Parameters:
  • pool_in – An application allocated handle for the memory pool. Can be NULL, depending on if RCSW_NOALLOC_HANDLE is passed or not.

  • params – The initialization parameters.

Returns:

The initialized pool, or NULL if an error occurred.