Function mpool_release

Function Documentation

status_t mpool_release(struct mpool *the_pool, void *ptr)

Release a chunk of memory from a mpool.

Memory chunk will not actually be freed until the last reference has released it.

Parameters:
  • the_pool – The mpool handle.

  • ptr – The memory to release.

Returns:

status_t.