Main Page | Modules | Alphabetical List | Data Structures | 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

 RCSID ("$Id:palloc.c, v 1.2 2005/09/26 20:25:23 rmanfredi Exp $")
pool_tpool_create (size_t size, gint max)
 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
 

Allocate a pool descriptor.

void pool_free pool_t p  ) 
 

Free a pool descriptor.

RCSID "$Id:palloc.  c,
v 1.2 2005/09/26 20:25:23 rmanfredi Exp $" 
 


Generated on Sun Feb 12 10:50:05 2006 for Gtk-Gnutella by doxygen 1.3.6