]> git.sur5r.net Git - openldap/commitdiff
Add (back in) destroy functions...
authorKurt Zeilenga <kurt@openldap.org>
Fri, 29 Jan 1999 06:05:18 +0000 (06:05 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 29 Jan 1999 06:05:18 +0000 (06:05 +0000)
libraries/libldap_r/rdwr.c
libraries/libldap_r/thr_cthreads.c
libraries/libldap_r/thr_posix.c
libraries/libldap_r/thr_stub.c

index 1d43efc0756b2294807a46c318895837c05f8758..56de51cf944ca352e415d9ff0c5218b53bee5cf2 100644 (file)
@@ -34,6 +34,14 @@ ldap_pvt_thread_rdwr_init(ldap_pvt_thread_rdwr_t *rdwrp )
        return 0;
 }
 
+int 
+ldap_pvt_thread_rdwr_destroy(ldap_pvt_thread_rdwr_t *rdwrp )
+{
+       ldap_pvt_thread_mutex_destroy(&(rdwrp->lt_mutex) );
+       ldap_pvt_thread_cond_destroy(&(rdwrp->lt_lock_free) );
+       return 0;
+}
+
 int ldap_pvt_thread_rdwr_rlock(ldap_pvt_thread_rdwr_t *rdwrp){
        ldap_pvt_thread_mutex_lock(&(rdwrp->lt_mutex));
        while(rdwrp->lt_writer_writing) {
index d69f029bfbbd3e5b3d4d347387413b9b5e4eb4cc..6eddb69317b61ca08c931c4c2ada18f1712d9a4b 100644 (file)
@@ -75,6 +75,13 @@ ldap_pvt_thread_cond_init( ldap_pvt_thread_cond_t *cond )
        return( 0 );
 }
 
+int 
+ldap_pvt_thread_cond_destroy( ldap_pvt_thread_cond_t *cond )
+{
+       condition_clear( cond );
+       return( 0 );
+}
+
 int 
 ldap_pvt_thread_cond_signal( ldap_pvt_thread_cond_t *cond )
 {
@@ -83,9 +90,9 @@ ldap_pvt_thread_cond_signal( ldap_pvt_thread_cond_t *cond )
 }
 
 int
-ldap_pvt_thread_cond_broadcast( ldap_pvt_thread_cond_t *cv )
+ldap_pvt_thread_cond_broadcast( ldap_pvt_thread_cond_t *cond )
 {
-       condition_broadcast( cv );
+       condition_broadcast( cond );
        return( 0 );
 }
 
index 1ebb1b37d49cebe142dd94389f3cc9437587a1e9..09f283d829d16158362d8b010292a56f9bbd600d 100644 (file)
@@ -120,6 +120,12 @@ ldap_pvt_thread_cond_init( ldap_pvt_thread_cond_t *cond )
 {
        return pthread_cond_init( cond, NULL );
 }
+
+int 
+ldap_pvt_thread_cond_destroy( ldap_pvt_thread_cond_t *cond )
+{
+       return pthread_cond_destroy( cond );
+}
        
 int 
 ldap_pvt_thread_cond_signal( ldap_pvt_thread_cond_t *cond )
index ef47b81b3b73102815d53d7a8b9cafc584133d06..0b8f661d5b1defe896f86742cbca2ee8d13c6f71 100644 (file)
@@ -75,6 +75,12 @@ ldap_pvt_thread_cond_init( ldap_pvt_thread_cond_t *cond )
        return 0;
 }
 
+int 
+ldap_pvt_thread_cond_destroy( ldap_pvt_thread_cond_t *cond )
+{
+       return 0;
+}
+
 int 
 ldap_pvt_thread_cond_signal( ldap_pvt_thread_cond_t *cond )
 {