summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2002-07-30 21:31:35 +0200
committerJeff Trawick <trawick@apache.org>2002-07-30 21:31:35 +0200
commit8250a84889659f62057d9183d767b9646a409bb8 (patch)
tree2896a99ce85509c4a59ef1e6f5c22467e67a2f14 /include
parentuntabify (diff)
downloadapache2-8250a84889659f62057d9183d767b9646a409bb8.tar.xz
apache2-8250a84889659f62057d9183d767b9646a409bb8.zip
if APR doesn't support threads, we don't need (and can't have) these
thread mutexes git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96243 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/util_ldap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/util_ldap.h b/include/util_ldap.h
index eb70f08e31..8c689ce338 100644
--- a/include/util_ldap.h
+++ b/include/util_ldap.h
@@ -92,7 +92,9 @@ typedef enum {
typedef struct util_ldap_connection_t {
LDAP *ldap;
apr_pool_t *pool; /* Pool from which this connection is created */
+#if APR_HAS_THREADS
apr_thread_mutex_t *lock; /* Lock to indicate this connection is in use */
+#endif
int bound; /* Flag to indicate whether this connection is bound yet */
const char *host; /* Name of the LDAP server (or space separated list) */
@@ -116,7 +118,9 @@ typedef struct util_ldap_connection_t {
/* LDAP cache state information */
typedef struct util_ldap_state_t {
apr_pool_t *pool; /* pool from which this state is allocated */
+#if APR_HAS_THREADS
apr_thread_mutex_t *mutex; /* mutex lock for the connection list */
+#endif
apr_size_t cache_bytes; /* Size (in bytes) of shared memory cache */
long search_cache_ttl; /* TTL for search cache */