mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Remove race condition noted in ITS#216.
This commit is contained in:
parent
6e5d2eea4e
commit
c044b2a667
@ -96,7 +96,7 @@ ldap_pvt_thread_cond_wait( ldap_pvt_thread_cond_t *cond,
|
||||
ldap_pvt_thread_mutex_t *mutex )
|
||||
{
|
||||
ReleaseMutex( *mutex );
|
||||
WaitForSingleObject( *cond, INFINITE );
|
||||
SignalObjectAndWait( *mutex, *cond, INFINITE, FALSE );
|
||||
WaitForSingleObject( *mutex, INFINITE );
|
||||
return( 0 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user