Function mpool_size
Defined in File mpool.h
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.