This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
RE: hang in pthread_cond_signal
- To: "'Robert Collins'" <robert dot collins at itdomain dot com dot au>, <cygwin at cygwin dot com>
- Subject: RE: hang in pthread_cond_signal
- From: "Norman Vine" <nhv at cape dot com>
- Date: Fri, 15 Jun 2001 07:52:36 -0400
- Cc: <cygwin-patches at cygwin dot com>
- Reply-To: <nhv at cape dot com>
Robert Collins writes:
"Greg Smith" <rys@epaibm.rtpnc.epa.gov> wrote:
>
>
>> 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 for the testcase Greg. The attached patch fixes your testcase.
With this patch 'some very simple' Python threading tests seem to work.
But many are still hanging.
Pthreads are still quite foreign to me but hopefully using Greg's test as
a starting point I can pinpoint the other problem areas now.
Thanks
Norman Vine