From a1e63db57400cd100da2dd4ff517649e0aa65be7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 7 Jun 2002 22:45:22 +0000 Subject: [PATCH] Fix ITS#1865, (ITS#1764?) cond_broadcast behavior was broken --- libraries/libldap_r/thr_nt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5