From: Kurt Zeilenga Date: Sat, 11 Mar 2000 00:58:10 +0000 (+0000) Subject: Remove race condition noted in ITS#216. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3157 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c044b2a667a23af8ed0a2469b73b18324f7427b8;p=openldap Remove race condition noted in ITS#216. --- diff --git a/libraries/libldap_r/thr_nt.c b/libraries/libldap_r/thr_nt.c index 20cca306ea..d3d41ff3c6 100644 --- a/libraries/libldap_r/thr_nt.c +++ b/libraries/libldap_r/thr_nt.c @@ -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 ); }