summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/apr_thread_cond.h6
-rw-r--r--locks/beos/thread_cond.c3
-rw-r--r--locks/netware/thread_cond.c3
-rw-r--r--locks/os2/thread_cond.c3
-rw-r--r--locks/unix/thread_cond.c1
-rw-r--r--locks/win32/thread_cond.c3
6 files changed, 19 insertions, 0 deletions
diff --git a/include/apr_thread_cond.h b/include/apr_thread_cond.h
index 6d4822846..65b6f8deb 100644
--- a/include/apr_thread_cond.h
+++ b/include/apr_thread_cond.h
@@ -130,6 +130,12 @@ APR_DECLARE(apr_status_t) apr_thread_cond_broadcast(apr_thread_cond_t *cond);
*/
APR_DECLARE(apr_status_t) apr_thread_cond_destroy(apr_thread_cond_t *cond);
+/**
+ * Get the pool used by this thread_cond.
+ * @return apr_pool_t the pool
+ */
+APR_POOL_DECLARE_ACCESSOR(thread_cond);
+
#endif /* APR_HAS_THREADS */
#ifdef __cplusplus
diff --git a/locks/beos/thread_cond.c b/locks/beos/thread_cond.c
index e43e8b876..0d1de6cd7 100644
--- a/locks/beos/thread_cond.c
+++ b/locks/beos/thread_cond.c
@@ -88,3 +88,6 @@ APR_DECLARE(apr_status_t) apr_thread_cond_destroy(apr_thread_cond_t *cond)
{
return APR_ENOTIMPL;
}
+
+APR_POOL_IMPLEMENT_ACCESSOR(thread_cond)
+
diff --git a/locks/netware/thread_cond.c b/locks/netware/thread_cond.c
index 896543b3f..ab704ca57 100644
--- a/locks/netware/thread_cond.c
+++ b/locks/netware/thread_cond.c
@@ -86,3 +86,6 @@ APR_DECLARE(apr_status_t) apr_thread_cond_destroy(apr_thread_cond_t *cond)
{
return APR_ENOTIMPL;
}
+
+APR_POOL_IMPLEMENT_ACCESSOR(thread_cond)
+
diff --git a/locks/os2/thread_cond.c b/locks/os2/thread_cond.c
index eaf10f18c..94d91e941 100644
--- a/locks/os2/thread_cond.c
+++ b/locks/os2/thread_cond.c
@@ -87,3 +87,6 @@ APR_DECLARE(apr_status_t) apr_thread_cond_destroy(apr_thread_cond_t *cond)
{
return APR_ENOTIMPL;
}
+
+APR_POOL_IMPLEMENT_ACCESSOR(thread_cond)
+
diff --git a/locks/unix/thread_cond.c b/locks/unix/thread_cond.c
index c8bb26763..3c7ad6fa7 100644
--- a/locks/unix/thread_cond.c
+++ b/locks/unix/thread_cond.c
@@ -160,5 +160,6 @@ APR_DECLARE(apr_status_t) apr_thread_cond_destroy(apr_thread_cond_t *cond)
return stat;
}
+APR_POOL_IMPLEMENT_ACCESSOR(thread_cond)
#endif /* APR_HAS_THREADS */
diff --git a/locks/win32/thread_cond.c b/locks/win32/thread_cond.c
index d2e45e8df..032c28da0 100644
--- a/locks/win32/thread_cond.c
+++ b/locks/win32/thread_cond.c
@@ -146,3 +146,6 @@ APR_DECLARE(apr_status_t) apr_thread_cond_destroy(apr_thread_cond_t *cond)
{
return apr_pool_cleanup_run(cond->pool, cond, thread_cond_cleanup);
}
+
+APR_POOL_IMPLEMENT_ACCESSOR(thread_cond)
+