This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: hang in pthread_cond_signal
- To: cygwin at cygwin dot com, cygwin-patches at cygwin dot com
- Subject: Re: hang in pthread_cond_signal
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Thu, 14 Jun 2001 19:53:50 -0400
- References: <3B290FE5.22678B61@trex.rtpnc.epa.gov> <03cb01c0f529$7b826020$0200a8c0@lifelesswks>
- Reply-To: cygwin-patches at cygwin dot com
On Fri, Jun 15, 2001 at 09:26:46AM +1000, Robert Collins wrote:
>
>----- 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.
Patch applied.
cgf