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) {
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 )
{
}
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 );
}
{
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 )
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 )
{