summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-01-26 15:44:28 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2004-01-26 15:44:28 +0000
commit3ef7db4670bff34773b7628733f9ae3c9374ac06 (patch)
tree2cbb200a355386326311046784306068409b3c8d /locks
parentfd7c570e6711f0713e2fcc5c6035fa0cc52c52cb (diff)
downloadlibapr-3ef7db4670bff34773b7628733f9ae3c9374ac06.tar.gz
* configure.in: Fix detection of pthread rwlocks to actually fail when
pthread_rwlock_t can't be used; print and cache results of tests carried out; define HAVE_PTHREAD_RWLOCKS when rwlocks can be used. * locks/unix/thread_rwlock.c, include/arch/unix/apr_arch_thread_rwlock.h: Use new HAVE_PTHREAD_RWLOCKS define. PR: 22990 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64882 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/thread_rwlock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/locks/unix/thread_rwlock.c b/locks/unix/thread_rwlock.c
index 55a45e0fd..2cc682ebe 100644
--- a/locks/unix/thread_rwlock.c
+++ b/locks/unix/thread_rwlock.c
@@ -1,7 +1,7 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2000-2003 The Apache Software Foundation. All rights
+ * Copyright (c) 2000-2004 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -57,7 +57,7 @@
#if APR_HAS_THREADS
-#ifdef HAVE_PTHREAD_RWLOCK_INIT
+#ifdef HAVE_PTHREAD_RWLOCKS
/* The rwlock must be initialized but not locked by any thread when
* cleanup is called. */
@@ -175,7 +175,7 @@ APR_DECLARE(apr_status_t) apr_thread_rwlock_destroy(apr_thread_rwlock_t *rwlock)
return apr_pool_cleanup_run(rwlock->pool, rwlock, thread_rwlock_cleanup);
}
-#else /* HAVE_PTHREAD_RWLOCK_INIT */
+#else /* HAVE_PTHREAD_RWLOCKS */
APR_DECLARE(apr_status_t) apr_thread_rwlock_create(apr_thread_rwlock_t **rwlock,
apr_pool_t *pool)
@@ -213,7 +213,7 @@ APR_DECLARE(apr_status_t) apr_thread_rwlock_destroy(apr_thread_rwlock_t *rwlock)
return APR_ENOTIMPL;
}
-#endif /* HAVE_PTHREAD_RWLOCK_INIT */
+#endif /* HAVE_PTHREAD_RWLOCKS */
APR_POOL_IMPLEMENT_ACCESSOR(thread_rwlock)
#endif /* APR_HAS_THREADS */