This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Bug in pthread_cond_signal under Win NT 4.0
Ken, what version of the cygwin .dll did you create this patch against?
IIRC we fixed this bug a few weeks ago.
Rob
----- Original Message -----
From: "Ken Tew" <ken2@andrew.cmu.edu>
To: <cygwin@cygwin.com>
Sent: Saturday, July 14, 2001 6:10 AM
Subject: Bug in pthread_cond_signal under Win NT 4.0
>
> If you signal a condition variable without any threads actually waiting
> on the condition variable, then when a thread does wait on that variable
> it will hang.
>
> I've attached the file pthread_bug_test.cpp which is a simple program to
> demonstrate the bug.
>
> I also attached a modified thread.cc which fixes the bug. It simply
> checks to see if any threads are waiting on the condition before
> signalling. The only change I made to thread.cc was adding the line:
> if (waiting)
> at line 452 in the file.
>
> ----------
> \//////
> [ O o ]
> Ken Tew - Licensed to Program \_=_/
> http://www.pitt.edu/~ktew _| |_
> / \_/ \
> ________________________________________oOOO___OOOo__
>
----------------------------------------------------------------------------
----
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/