Data Structures | |
struct | apr_memnode_t |
Defines | |
#define | APR_MEMNODE_T_SIZE APR_ALIGN_DEFAULT(sizeof(apr_memnode_t)) |
#define | APR_ALLOCATOR_MAX_FREE_UNLIMITED 0 |
Typedefs | |
typedef apr_allocator_t | apr_allocator_t |
typedef apr_memnode_t | apr_memnode_t |
Functions | |
apr_status_t | apr_allocator_create (apr_allocator_t **allocator) |
void | apr_allocator_destroy (apr_allocator_t *allocator) |
apr_memnode_t * | apr_allocator_alloc (apr_allocator_t *allocator, apr_size_t size) |
void | apr_allocator_free (apr_allocator_t *allocator, apr_memnode_t *memnode) |
void | apr_allocator_owner_set (apr_allocator_t *allocator, apr_pool_t *pool) |
apr_pool_t * | apr_allocator_owner_get (apr_allocator_t *allocator) |
void | apr_allocator_max_free_set (apr_allocator_t *allocator, apr_size_t size) |
void | apr_allocator_mutex_set (apr_allocator_t *allocator, apr_thread_mutex_t *mutex) |
apr_thread_mutex_t * | apr_allocator_mutex_get (apr_allocator_t *allocator) |
|
Symbolic constants |
|
The base size of a memory node - aligned. |
|
the allocator structure |
|
the structure which holds information about the allocation |
|
Allocate a block of mem from the allocator
|
|
Create a new allocator
|
|
Destroy an allocator
|
|
Free a list of blocks of mem, giving them back to the allocator. The list is typically terminated by a memnode with its next field set to NULL.
|
|
Set the current threshold at which the allocator should start giving blocks back to the system.
|
|
Get the mutex currently set for the allocator
|
|
Set a mutex for the allocator to use
|
|
Get the current owner of the allocator
|
|
Set the owner of the allocator
|