mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-06 15:00:40 +08:00
Fix ITS#1865, (ITS#1764?) cond_broadcast behavior was broken
This commit is contained in:
parent
964d1fdd90
commit
a1e63db574
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user