]> git.sur5r.net Git - openldap/commitdiff
Really disable pthread rw locks
authorKurt Zeilenga <kurt@openldap.org>
Thu, 8 Jun 2000 00:29:32 +0000 (00:29 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 8 Jun 2000 00:29:32 +0000 (00:29 +0000)
include/ldap_int_thread.h
libraries/libldap_r/thr_posix.c

index 405f20d1b89086fd7eb61b67db70c1f510e0c42d..034f44e4d15d8dd6c216808dc588174058870d7d 100644 (file)
@@ -49,7 +49,7 @@ typedef pthread_cond_t                ldap_int_thread_cond_t;
 #define HAVE_SETCONCURRENCY 1
 #endif
 
-#if defined( HAVE_PTHREAD_RWLOCK_DESTROY )
+#if 0 && defined( HAVE_PTHREAD_RWLOCK_DESTROY )
 #define LDAP_THREAD_HAVE_RDWR 1
 typedef pthread_rwlock_t ldap_pvt_thread_rdwr_t;
 #endif
index f6a16c5d2a5ea5ab7aa42a337f33ce0df9ee8e49..bb1fdb279f2294be367576aedb8ace1c92f80873 100644 (file)
@@ -218,6 +218,7 @@ ldap_int_thread_mutex_unlock( ldap_int_thread_mutex_t *mutex )
        return pthread_mutex_unlock( mutex );
 }
 
+#ifdef LDAP_THREAD_HAVE_RDWR
 #ifdef HAVE_PTHREAD_RWLOCK_DESTROY
 int 
 ldap_pvt_thread_rdwr_init( ldap_pvt_thread_rdwr_t *rw )
@@ -261,6 +262,7 @@ int ldap_pvt_thread_rdwr_wunlock( ldap_pvt_thread_rdwr_t *rw )
        return pthread_rwlock_unlock( rw );
 }
 
+#endif /* HAVE_PTHREAD_RDLOCK_DESTROY */
 #endif /* LDAP_THREAD_HAVE_RDWR */
 #endif /* HAVE_PTHREADS */