Commit 26d29bb2 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add (back in) destroy functions...

parent 30d10607
......@@ -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) {
......
......@@ -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 );
}
......
......@@ -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 )
......
......@@ -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 )
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment