hang in pthread_cond_signal

Robert Collins robert.collins@itdomain.com.au
Thu Jun 14 16:25:00 GMT 2001


----- Original Message -----
From: "Greg Smith" <rys@epaibm.rtpnc.epa.gov>
To: <cygwin@cygwin.com>
Sent: Friday, June 15, 2001 5:26 AM
Subject: hang in pthread_cond_signal


> I am using the cygwin-src snapshot from June 10.
>
> Seems pthread_cond_signal can hang while another thread
> is waiting on the condition AND a pthread_cond_signal
> has been previously issued when no one was waiting on the
> condition.  Below is a testcase that illustrates the
> problem:
>
> Thanks,
>
> Greg
>

Thanks for the testcase Greg. The attached patch fixes your testcase.

Rob

Changelog:


Fri June 15 09:25:00  Robert Collins <rbtcollins@hotmail.com>

    * thread.cc (pthread_cond::Signal): Release the condition access
variable correctly.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cond_signal_fix.patch
Type: text/x-diff
Size: 875 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010614/8efc25e8/attachment.bin>


More information about the Cygwin mailing list