]> git.sur5r.net Git - openldap/commitdiff
Remove race condition noted in ITS#216.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 11 Mar 2000 00:58:10 +0000 (00:58 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 11 Mar 2000 00:58:10 +0000 (00:58 +0000)
libraries/libldap_r/thr_nt.c

index 20cca306eaf8c9a2100b431a227180e6167b65a3..d3d41ff3c61f9ed9e0d0535873429f53f0720bad 100644 (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 );
 }