Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

palloc.c File Reference


Detailed Description

Memory pool allocator, suitable for large fixed-size objects.

Author:
Raphael Manfredi
Date:
2005

#include "common.h"
#include "palloc.h"
#include "walloc.h"
#include "override.h"

Functions

pool_tpool_create (size_t size, gint max, pool_alloc_t alloc, pool_free_t dealloc)
 Allocate a pool descriptor.
void pool_free (pool_t *p)
 Free a pool descriptor.
gpointer palloc (pool_t *p)
 Allocate buffer from the pool.
void pfree (pool_t *p, gpointer obj)
 Return a buffer to the pool.


Function Documentation

gpointer palloc pool_t p  ) 
 

Allocate buffer from the pool.

void pfree pool_t p,
gpointer  obj
 

Return a buffer to the pool.

pool_t* pool_create size_t  size,
gint  max,
pool_alloc_t  alloc,
pool_free_t  dealloc
 

Allocate a pool descriptor.

void pool_free pool_t p  ) 
 

Free a pool descriptor.


Generated on Sat Jun 30 17:53:29 2007 for gtk-gnutella by  doxygen 1.3.9.1