Home --> Documentations --> PJLIB Reference
19#ifndef __PJ_POOL_ALT_H__
20#define __PJ_POOL_ALT_H__
52#define PJ_POOL_SIZE (sizeof(struct pj_pool_t))
70#define pj_pool_create(fc,nm,init,inc,cb) \
71 pj_pool_create_imp(__FILE__, __LINE__, fc, nm, init, inc, cb)
73#define pj_pool_release(pool) pj_pool_release_imp(pool)
74#define pj_pool_safe_release(pool) pj_pool_safe_release_imp(pool)
75#define pj_pool_secure_release(pool) pj_pool_secure_release_imp(pool)
76#define pj_pool_getobjname(pool) pj_pool_getobjname_imp(pool)
77#define pj_pool_reset(pool) pj_pool_reset_imp(pool)
78#define pj_pool_get_capacity(pool) pj_pool_get_capacity_imp(pool)
79#define pj_pool_get_used_size(pool) pj_pool_get_used_size_imp(pool)
80#define pj_pool_alloc(pool,sz) \
81 pj_pool_alloc_imp(__FILE__, __LINE__, pool, sz)
83#define pj_pool_calloc(pool,cnt,elem) \
84 pj_pool_calloc_imp(__FILE__, __LINE__, pool, cnt, elem)
86#define pj_pool_zalloc(pool,sz) \
87 pj_pool_zalloc_imp(__FILE__, __LINE__, pool, sz)
96PJ_DECL( pj_pool_t*) pj_pool_create_imp( const char *file, int line,
104PJ_DECL( void) pj_pool_release_imp( pj_pool_t *pool);
107PJ_DECL( void) pj_pool_safe_release_imp( pj_pool_t **pool);
110PJ_DECL( void) pj_pool_secure_release_imp( pj_pool_t **pool);
113PJ_DECL( const char*) pj_pool_getobjname_imp( pj_pool_t *pool);
116PJ_DECL( void) pj_pool_reset_imp( pj_pool_t *pool);
125PJ_DECL( void*) pj_pool_alloc_imp( const char *file, int line,
129PJ_DECL( void*) pj_pool_calloc_imp( const char *file, int line,
134PJ_DECL( void*) pj_pool_zalloc_imp( const char *file, int line,
138#define PJ_POOL_ZALLOC_T(pool,type) \
139 ((type*)pj_pool_zalloc(pool, sizeof(type)))
140#define PJ_POOL_ALLOC_T(pool,type) \
141 ((type*)pj_pool_alloc(pool, sizeof(type)))
142#ifndef PJ_POOL_ALIGNMENT
143# define PJ_POOL_ALIGNMENT 4
205#define pj_caching_pool_init( cp, pol, mac)
206#define pj_caching_pool_destroy(cp)
207#define pj_pool_factory_dump(pf, detail)
size_t pj_size_t Definition: types.h:58
int PJ_NO_MEMORY_EXCEPTION Definition: pool.h:636
int pj_NO_MEMORY_EXCEPTION(void)
void pj_pool_callback(pj_pool_t *pool, pj_size_t size) Definition: pool.h:290
#define PJ_BEGIN_DECL Definition: config.h:1284
#define PJ_END_DECL Definition: config.h:1285
pj_pool_factory factory Definition: pool.h:826
pj_size_t peak_used_size Definition: pool.h:859
pj_size_t used_size Definition: pool.h:853
pj_size_t used_count Definition: pool.h:848
void(* block_free)(pj_pool_factory *factory, void *mem, pj_size_t size) Definition: pool.h:616
unsigned flags Definition: pool.h:626
pj_pool_callback * callback Definition: pool.h:621
pj_pool_factory_policy policy Definition: pool.h:671
Definition: pool_alt.h:35
pj_pool_factory * factory Definition: pool.h:317
char obj_name[PJ_MAX_OBJ_NAME] Definition: pool.h:314
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|