StPool * st_pool_create(size_t blk_size)
Create a pool.
void * st_pool_alloc(StPool *pool)
Allocate a block from a pool.
void * st_pool_tryalloc(StPool *pool)
Try to allocate a block from a pool.
void st_pool_destroy(StPool *pool)
Destroy a pool.
struct StPool StPool
pool.
Definition pool.h:55
void st_pool_free(StPool *pool, void *blk)
Return a block to a pool.