From 0cee42f587fa35429c6467cc4e21a9aa2d514c3b Mon Sep 17 00:00:00 2001 From: striker Date: Thu, 30 May 2002 01:06:42 +0000 Subject: New function: apr_pool_allocator_get. This function allows us to find out which allocator is being used by a pool. This is particularly usefull when you have created a pool with its own allocator, but don't want to keep a global pointer around to do tricks with its max free size or its mutexes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63447 13f79535-47bb-0310-9956-ffa450edef68 --- memory/unix/apr_pools.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'memory') diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c index 51c0d9a54..a7601c968 100644 --- a/memory/unix/apr_pools.c +++ b/memory/unix/apr_pools.c @@ -873,6 +873,11 @@ APR_DECLARE(apr_status_t) apr_pool_create_ex(apr_pool_t **newpool, return APR_SUCCESS; } +APR_DECLARE(apr_allocator_t *) apr_pool_allocator_get(apr_pool_t *pool) +{ + return pool->allocator; +} + /* * "Print" functions -- cgit v1.2.1