This is to be used for large enough blocks, otherwise walloc() or even zalloc() should be preferred.
#include <glib.h>
Go to the source code of this file.
Data Structures | |
struct | pool |
A memory pool descriptor. More... | |
Typedefs | |
typedef pool | pool_t |
A memory pool descriptor. | |
Functions | |
pool_t * | pool_create (size_t size, gint max) |
Allocate a pool descriptor. | |
void | pool_free (pool_t *pool) |
Free a pool descriptor. | |
gpointer | palloc (pool_t *pool) |
Allocate buffer from the pool. | |
void | pfree (pool_t *pool, gpointer obj) |
Return a buffer to the pool. |
|
A memory pool descriptor.
|
|
Allocate buffer from the pool.
|
|
Return a buffer to the pool.
|
|
Allocate a pool descriptor.
|
|
Free a pool descriptor.
|