Classes | |
struct | axutil_allocator |
Axis2 memory allocator. More... | |
Defines | |
#define | AXIS2_MALLOC(allocator, size) ((allocator)->malloc_fn(allocator, size)) |
#define | AXIS2_REALLOC(allocator, ptr, size) ((allocator)->realloc(allocator, ptr, size)) |
#define | AXIS2_FREE(allocator, ptr) ((allocator)->free_fn(allocator, ptr)) |
Typedefs | |
typedef axutil_allocator | axutil_allocator_t |
Axis2 memory allocator. | |
Functions | |
AXIS2_EXTERN axutil_allocator_t * | axutil_allocator_init (axutil_allocator_t *allocator) |
AXIS2_EXTERN void | axutil_allocator_free (axutil_allocator_t *allocator) |
AXIS2_EXTERN void | axutil_allocator_switch_to_global_pool (axutil_allocator_t *allocator) |
AXIS2_EXTERN void | axutil_allocator_switch_to_local_pool (axutil_allocator_t *allocator) |
|
Axis2 memory allocator. Encapsulator for memory allocating routines |
|
This function should be used to deallocate memory if the default allocator provided by axutil_allocator_init()
|
|
Initializes (creates) an allocator.
|
|
Swaps the local_pool and global_pool values. In case of using pools, local_pool is suppoed to hold the pool out of which local values are allocated. In case of values that live beyond a request globle pool should be used, hence this method has to be called to swithch to globle pool for allocation.
|
|
Swaps the local_pool and global_pool values. In case of using pools, local_pool is suppoed to hold the pool out of which local values are allocated. In case of values that live beyond a request globle pool should be used. This method can be used to inverse the switching done by axutil_allocator_switch_to_global_pool, to start using the local pool again.
|