]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import ITS#1865 cond_broadcast fix from HEAD
authorHoward Chu <hyc@openldap.org>
Sat, 8 Jun 2002 03:55:37 +0000 (03:55 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 8 Jun 2002 03:55:37 +0000 (03:55 +0000)
libraries/libldap_r/thr_nt.c

index 2bd4474ef49ab54410b26967725a2166aab145ad..4a6084a89ac04c53a09996f7cf661609300cb05d 100644 (file)
@@ -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 );
 }