src/misc/pool.c File Reference

Pool allocator implementation. More...

#include <sys/types.h>
#include <sys/stat.h>
#include <pthread.h>
#include <unistd.h>
#include <stddef.h>
#include <misc/result.h>
#include <misc/malloc.h>
#include <misc/pool.h>
#include <misc/debug.h>
#include <misc/mutex.h>
#include <core/config.h>

Go to the source code of this file.

Classes

struct  txc_pool_object_s
struct  txc_pool_s

Functions

txc_result_t txc_pool_create (txc_pool_t **poolp, unsigned int obj_size, unsigned int obj_num, txc_pool_object_constructor_t obj_constructor)
txc_result_t txc_pool_destroy (txc_pool_t **poolp)
txc_result_t txc_pool_object_alloc (txc_pool_t *pool, void **objp, int lock)
void txc_pool_object_free (txc_pool_t *pool, void **objp, int lock)
txc_pool_object_ttxc_pool_object_first (txc_pool_t *pool, int obj_status)
txc_pool_object_ttxc_pool_object_next (txc_pool_object_t *obj)
void * txc_pool_object_of (txc_pool_object_t *obj)
void txc_pool_lock (txc_pool_t *pool)
void txc_pool_unlock (txc_pool_t *pool)
void txc_pool_print (txc_pool_t *pool, txc_pool_object_print_t printer, int verbose)


Detailed Description

Pool allocator implementation.

Definition in file pool.c.


Generated on Wed Dec 9 20:32:40 2009 for xCalls by  doxygen 1.4.7