summaryrefslogtreecommitdiff
path: root/memory
diff options
context:
space:
mode:
authorstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2002-05-30 01:06:42 +0000
committerstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2002-05-30 01:06:42 +0000
commit0cee42f587fa35429c6467cc4e21a9aa2d514c3b (patch)
treefc04d44c24247e69055bb123375d548b921edf64 /memory
parentaa97b1d93bc3edb8ecb4dcb34b8267dcb2a6dcdf (diff)
downloadlibapr-0cee42f587fa35429c6467cc4e21a9aa2d514c3b.tar.gz
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
Diffstat (limited to 'memory')
-rw-r--r--memory/unix/apr_pools.c5
1 files changed, 5 insertions, 0 deletions
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