summaryrefslogtreecommitdiff
path: root/include/apr_thread_mutex.h
diff options
context:
space:
mode:
authorSander Striker <striker@apache.org>2002-03-15 00:48:24 +0000
committerSander Striker <striker@apache.org>2002-03-15 00:48:24 +0000
commit4f77313db1f721a709cddc320fb9ab85b29ea5c3 (patch)
tree6069cd924dbc50c4fd26684c26bfc22318775043 /include/apr_thread_mutex.h
parent6c7d964b48990a32fbd341a47bdf9674e38319f7 (diff)
downloadapr-4f77313db1f721a709cddc320fb9ab85b29ea5c3.tar.gz
Factor out the allocators from pools.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63132 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_thread_mutex.h')
-rw-r--r--include/apr_thread_mutex.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/apr_thread_mutex.h b/include/apr_thread_mutex.h
index 7b67f50ea..5d4358dcf 100644
--- a/include/apr_thread_mutex.h
+++ b/include/apr_thread_mutex.h
@@ -127,7 +127,17 @@ APR_DECLARE(apr_status_t) apr_thread_mutex_destroy(apr_thread_mutex_t *mutex);
* Get the pool used by this thread_mutex.
* @return apr_pool_t the pool
*/
-APR_POOL_DECLARE_ACCESSOR(thread_mutex);
+/*
+ * XXX: We should do:
+ *
+ * APR_POOL_DECLARE_ACCESSOR(thread_mutex);
+ *
+ * But since there is a dependency between apr_thread_mutex.h, apr_pools.h
+ * and apr_allocator.h, this won't work without lots of warnings. Spelling
+ * it out resolves the problem.
+ */
+APR_DECLARE(apr_pool_t *) apr_thread_mutex_pool_get (const apr_thread_mutex_t *ob);
+
#endif /* APR_HAS_THREADS */