Function mpool_timedreq

Function Documentation

status_t mpool_timedreq(struct mpool *the_pool, const struct timespec *to, void **chunk)

Request a memory chunk from a mpool with a timeout.

Parameters:
  • the_pool – The mpool handle.

  • to – Timeout.

  • chunk – The pointer to fill. Can be NULL.

Returns:

The allocated chunk, or NULL if an error occurred.