You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2002/02/08 19:32:51 UTC
cvs commit: httpd-2.0/include util_ldap.h
bnicholes 02/02/08 10:32:51
Modified: include util_ldap.h
Log:
Updated to use the newer locking API's. This file should probably be moved
to the httpd-ldap with the rest of the auth_ldap stuff.
Revision Changes Path
1.4 +4 -3 httpd-2.0/include/util_ldap.h
Index: util_ldap.h
===================================================================
RCS file: /home/cvs/httpd-2.0/include/util_ldap.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- util_ldap.h 28 Aug 2001 23:16:12 -0000 1.3
+++ util_ldap.h 8 Feb 2002 18:32:50 -0000 1.4
@@ -61,7 +61,8 @@
#ifdef APU_HAS_LDAP
/* APR header files */
-#include <apr_lock.h>
+#include <apr_thread_mutex.h>
+#include <apr_thread_rwlock.h>
#include <apr_tables.h>
#include <apr_time.h>
@@ -91,7 +92,7 @@
typedef struct util_ldap_connection_t {
LDAP *ldap;
apr_pool_t *pool; /* Pool from which this connection is created */
- apr_lock_t *lock; /* Lock to indicate this connection is in use */
+ apr_thread_mutex_t *lock; /* Lock to indicate this connection is in use */
int bound; /* Flag to indicate whether this connection is bound yet */
const char *host; /* Name of the LDAP server (or space separated list) */
@@ -115,7 +116,7 @@
/* LDAP cache state information */
typedef struct util_ldap_state_t {
apr_pool_t *pool; /* pool from which this state is allocated */
- apr_lock_t *mutex; /* mutex lock for the connection list */
+ apr_thread_mutex_t *mutex; /* mutex lock for the connection list */
apr_size_t cache_bytes; /* Size (in bytes) of shared memory cache */
long search_cache_ttl; /* TTL for search cache */
Re: cvs commit: httpd-2.0/include util_ldap.h
Posted by Justin Erenkrantz <je...@ebuilt.com>.
On Fri, Feb 08, 2002 at 06:32:51PM -0000, bnicholes@apache.org wrote:
> bnicholes 02/02/08 10:32:51
>
> Modified: include util_ldap.h
> Log:
> Updated to use the newer locking API's. This file should probably be moved
> to the httpd-ldap with the rest of the auth_ldap stuff.
Yeah, it should. -- justin