This is the mail archive of the
pthreads-win32@sourceware.cygnus.com
mailing list for the pthreas-win32 project.
condvar.c
- To: Pthreads-Win32 Mailing List <pthreads-win32@sourceware.cygnus.com>
- Subject: condvar.c
- From: Peter Slacik <Peter.Slacik@tatramed.sk>
- Date: Wed, 26 May 1999 18:19:23 +0200
- Organization: TatraMed s.r.o.
Hi thread writers,
I tried to upgrade (after half year) to the current pthreads snapshot,
snap-1999-04-07, and I suspect one inequality test to be wrong:
cvs diff -c -r1.1 -r1.2 condvar.c
Index: condvar.c
===================================================================
RCS file: pthread/condvar.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** condvar.c 1999/04/07 12:18:40 1.1
--- condvar.c 1999/05/26 16:10:08 1.2
***************
*** 851,857 ****
* Wait for all the awakened threads to acquire their part of
* the counting semaphore
*/
! if (WaitForSingleObject (cv->waitersDone, INFINITE) !=
WAIT_OBJECT_0)
{
result = 0;
--- 851,857 ----
* Wait for all the awakened threads to acquire their part of
* the counting semaphore
*/
! if (WaitForSingleObject (cv->waitersDone, INFINITE) ==
WAIT_OBJECT_0)
{
result = 0;
Please check this.
Regards
Peter Slacik