Remove race condition noted in ITS#216.

This commit is contained in:
Kurt Zeilenga 2000-03-11 00:58:10 +00:00
parent 6e5d2eea4e
commit c044b2a667

View File

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