Frees the resources used by the pool, then frees the pool itself.
void pool_free(Pool* pool);
Name | Type | Description |
---|---|---|
pool | Pool* | A pointer to the pool. |
Any resources used by the pool will be invalidated when this function is called, so make sure there are no more references to them beforehand.
POOL_DEFINE_H(IntPool, int_pool, int)
// See the main page for the function implementations.
POOL_DEFINE_C(IntPool, int_pool, int, int_init, int_free_resources)
IntPool* pool = int_pool_create();
// Use the pool...
int_pool_free(pool);