Function mpool_ref_remove

Function Documentation

status_t mpool_ref_remove(struct mpool *the_pool, const void *ptr)

Decrement ref count for a currently allocated chunk in a mpool.

If the reference count reaches 0 as a result of calling this function, the chunk is not freed.

Parameters:
  • the_pool – The mpool handle.

  • ptr – The chunk to remove a reference from.

Returns:

status_t