From: Howard Chu Date: Fri, 7 Jun 2002 22:45:22 +0000 (+0000) Subject: Fix ITS#1865, (ITS#1764?) cond_broadcast behavior was broken X-Git-Tag: OPENLDAP_REL_ENG_2_MP~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a1e63db57400cd100da2dd4ff517649e0aa65be7;p=openldap Fix ITS#1865, (ITS#1764?) cond_broadcast behavior was broken --- diff --git a/libraries/libldap_r/thr_nt.c b/libraries/libldap_r/thr_nt.c index 6ebb0ccce8..b818538a85 100644 --- a/libraries/libldap_r/thr_nt.c +++ b/libraries/libldap_r/thr_nt.c @@ -109,7 +109,8 @@ ldap_pvt_thread_cond_wait( ldap_pvt_thread_cond_t *cond, int ldap_pvt_thread_cond_broadcast( ldap_pvt_thread_cond_t *cond ) { - SetEvent( *cond ); + while ( WaitForSingleObject( *cond, 0 ) == WAIT_TIMEOUT ) + SetEvent( *cond ); return( 0 ); }