Simple patch, just what the subject says: Adds pool accessors for the apr_thread_mutex_t datatype.
[this is patch 1 of 4 for the new lock types to do the accessor thing] -aaron Index: include/apr_thread_mutex.h =================================================================== RCS file: /home/cvspublic/apr/include/apr_thread_mutex.h,v retrieving revision 1.2 diff -u -r1.2 apr_thread_mutex.h --- include/apr_thread_mutex.h 2001/09/05 00:33:49 1.2 +++ include/apr_thread_mutex.h 2001/09/26 16:28:48 @@ -114,6 +114,12 @@ */ 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); + #endif #ifdef __cplusplus Index: locks/beos/thread_mutex.c =================================================================== RCS file: /home/cvspublic/apr/locks/beos/thread_mutex.c,v retrieving revision 1.1 diff -u -r1.1 thread_mutex.c --- locks/beos/thread_mutex.c 2001/09/04 23:28:51 1.1 +++ locks/beos/thread_mutex.c 2001/09/26 16:28:48 @@ -91,3 +91,5 @@ return APR_ENOTIMPL; } +APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex) + Index: locks/netware/thread_mutex.c =================================================================== RCS file: /home/cvspublic/apr/locks/netware/thread_mutex.c,v retrieving revision 1.1 diff -u -r1.1 thread_mutex.c --- locks/netware/thread_mutex.c 2001/09/04 23:28:51 1.1 +++ locks/netware/thread_mutex.c 2001/09/26 16:28:48 @@ -90,3 +90,5 @@ return APR_ENOTIMPL; } +APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex) + Index: locks/os2/thread_mutex.c =================================================================== RCS file: /home/cvspublic/apr/locks/os2/thread_mutex.c,v retrieving revision 1.2 diff -u -r1.2 thread_mutex.c --- locks/os2/thread_mutex.c 2001/09/12 14:25:05 1.2 +++ locks/os2/thread_mutex.c 2001/09/26 16:28:48 @@ -131,3 +131,6 @@ return APR_FROM_OS_ERROR(rc); } + +APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex) + Index: locks/unix/thread_mutex.c =================================================================== RCS file: /home/cvspublic/apr/locks/unix/thread_mutex.c,v retrieving revision 1.2 diff -u -r1.2 thread_mutex.c --- locks/unix/thread_mutex.c 2001/09/05 19:34:01 1.2 +++ locks/unix/thread_mutex.c 2001/09/26 16:28:48 @@ -223,4 +223,6 @@ return stat; } +APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex) + #endif /* APR_HAS_THREADS */ Index: locks/win32/thread_mutex.c =================================================================== RCS file: /home/cvspublic/apr/locks/win32/thread_mutex.c,v retrieving revision 1.4 diff -u -r1.4 thread_mutex.c --- locks/win32/thread_mutex.c 2001/09/13 02:50:07 1.4 +++ locks/win32/thread_mutex.c 2001/09/26 16:28:48 @@ -106,3 +106,6 @@ { return apr_pool_cleanup_run(mutex->pool, mutex, thread_mutex_cleanup); } + +APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex) +