Fix ITS#1865, (ITS#1764?) cond_broadcast behavior was broken

This commit is contained in:
Howard Chu 2002-06-07 22:45:22 +00:00
parent 964d1fdd90
commit a1e63db574

View File

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