Subject: Re: hang in pthread_cond_signal
From: "Robert Collins" <[email-masked]>
To: "Greg Smith" <[email-masked]>, <[email-masked]>
Cc: <[email-masked]>
Date: Fri, 15 Jun 2001 09:26:46 +1000

----- Original Message -----
From: "Greg Smith" <[email-masked]>
To: <[email-masked]>
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 <[email-masked]>

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

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple