Function mpool_size

Function Documentation

static inline size_t mpool_size(const struct mpool *const pool)

Determine # elements currently in the memory pool.

Note

The returned value cannot be relied upon in concurrent contexts without additional synchronization.

Parameters:

pool – The pool handle.

Returns:

# elements in memory pool, or 0 on ERROR.