mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-05-28 04:35:57 -04:00
Import ITS#1865 cond_broadcast fix from HEAD
This commit is contained in:
parent
66bdd634fb
commit
9bc25cdc67
1 changed files with 2 additions and 1 deletions
|
|
@ -107,7 +107,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…
Reference in a new issue