rbb 01/09/26 13:55:33
Modified: . CHANGES
include apr_thread_mutex.h
locks/beos thread_mutex.c
locks/netware thread_mutex.c
locks/os2 thread_mutex.c
locks/unix thread_mutex.c
locks/win32 thread_mutex.c
Log:
Add pool accessors to the apr_thread_mutex_t datatype.
Submitted by: Aaron Bannert <[EMAIL PROTECTED]>
Revision Changes Path
1.161 +3 -0 apr/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apr/CHANGES,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -r1.160 -r1.161
--- CHANGES 2001/09/24 05:41:56 1.160
+++ CHANGES 2001/09/26 20:55:33 1.161
@@ -1,5 +1,8 @@
Changes with APR b1
+ *) Add pool accessors to the apr_thread_mutex_t datatype.
+ [Aaron Bannert <[EMAIL PROTECTED]>]
+
*) Add the apr_file_mktemp function. This creates and opens a
temporary file, for use by the program. This file is created
delete_on_close. The initial implementation only works on
1.3 +6 -0 apr/include/apr_thread_mutex.h
Index: apr_thread_mutex.h
===================================================================
RCS file: /home/cvs/apr/include/apr_thread_mutex.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- apr_thread_mutex.h 2001/09/05 00:33:49 1.2
+++ apr_thread_mutex.h 2001/09/26 20:55:33 1.3
@@ -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
1.2 +2 -0 apr/locks/beos/thread_mutex.c
Index: thread_mutex.c
===================================================================
RCS file: /home/cvs/apr/locks/beos/thread_mutex.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- thread_mutex.c 2001/09/04 23:28:51 1.1
+++ thread_mutex.c 2001/09/26 20:55:33 1.2
@@ -91,3 +91,5 @@
return APR_ENOTIMPL;
}
+APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex)
+
1.2 +2 -0 apr/locks/netware/thread_mutex.c
Index: thread_mutex.c
===================================================================
RCS file: /home/cvs/apr/locks/netware/thread_mutex.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- thread_mutex.c 2001/09/04 23:28:51 1.1
+++ thread_mutex.c 2001/09/26 20:55:33 1.2
@@ -90,3 +90,5 @@
return APR_ENOTIMPL;
}
+APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex)
+
1.3 +3 -0 apr/locks/os2/thread_mutex.c
Index: thread_mutex.c
===================================================================
RCS file: /home/cvs/apr/locks/os2/thread_mutex.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- thread_mutex.c 2001/09/12 14:25:05 1.2
+++ thread_mutex.c 2001/09/26 20:55:33 1.3
@@ -131,3 +131,6 @@
return APR_FROM_OS_ERROR(rc);
}
+
+APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex)
+
1.3 +2 -0 apr/locks/unix/thread_mutex.c
Index: thread_mutex.c
===================================================================
RCS file: /home/cvs/apr/locks/unix/thread_mutex.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- thread_mutex.c 2001/09/05 19:34:01 1.2
+++ thread_mutex.c 2001/09/26 20:55:33 1.3
@@ -223,4 +223,6 @@
return stat;
}
+APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex)
+
#endif /* APR_HAS_THREADS */
1.5 +3 -0 apr/locks/win32/thread_mutex.c
Index: thread_mutex.c
===================================================================
RCS file: /home/cvs/apr/locks/win32/thread_mutex.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- thread_mutex.c 2001/09/13 02:50:07 1.4
+++ thread_mutex.c 2001/09/26 20:55:33 1.5
@@ -106,3 +106,6 @@
{
return apr_pool_cleanup_run(mutex->pool, mutex, thread_mutex_cleanup);
}
+
+APR_POOL_IMPLEMENT_ACCESSOR(thread_mutex)
+