diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-11-21 12:58:06 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2004-11-21 12:58:06 +0000 |
commit | 9e27fbb58289d1d432b452a4c0bbe6a7fc34ef1d (patch) | |
tree | a6abaaae1ffcff863e5780fde200cfa703290c33 /configure.in | |
parent | 1838d2d23b27052796118875148c454aa59a3b68 (diff) | |
download | libapr-9e27fbb58289d1d432b452a4c0bbe6a7fc34ef1d.tar.gz |
Merge r65157, r65158 from trunk: (fixing random lockups in pool-debug
builds on x86_64)
Drop racy/broken Unix nested mutex implementation; use SUSv3-style
recursive mutex support if available:
* build/apr_threads.m4 (APR_CHECK_PTHREAD_RECURSIVE_MUTEX): New macro.
* configure.in: Use it.
* include/arch/unix/apr_arch_thread_mutex.h (struct
apr_thread_mutex_t): Drop nested mutex tracking fields.
* locks/unix/thread_mutex.c (apr_thread_mutex_create): Return ENOTIMPL
if lacking recursive mutex support, else create a recursive mutex.
(apr_thread_mutex_lock, apr_thread_mutex_unlock,
apr_thread_mutex_trylock): Remove nested mutex tracking.
* build/apr_threads.m4 (APR_CHECK_PTHREAD_RECURSIVE_MUTEX): Run rather
than just compile the test program.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@106085 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 2c3645135..5851850f5 100644 --- a/configure.in +++ b/configure.in @@ -555,6 +555,9 @@ else APR_ADDTO(CPPFLAGS, [-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE]) fi fi + # this might also require -DXOPEN_SOURCE=500, so leave after the + # rwlock check. + APR_CHECK_PTHREAD_RECURSIVE_MUTEX fi fi |