This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: pthread_mutex_init fails
- From: Jason Tishler <jason at tishler dot net>
- To: cygwin-developers at cygwin dot com
- Date: Fri, 23 Nov 2001 22:19:42 -0500
- Subject: Re: pthread_mutex_init fails
[Get raw message]
On Sun, Nov 18, 2001 at 05:42:49PM +0300, egor duda wrote:
> just to make it clear what we're talking about:
>
> [snip]
>
> 2001-11-18 Egor Duda <deo@logos-m.ru>
>
> * thread.cc (pthread_cond::Signal): Check for correct number
> of waiting threads.
>
> Index: thread.cc
> ===================================================================
> RCS file: /cvs/uberbaum/winsup/cygwin/thread.cc,v
> retrieving revision 1.54
> diff -u -p -2 -r1.54 thread.cc
> --- thread.cc 2001/11/15 11:10:38 1.54
> +++ thread.cc 2001/11/17 21:16:12
> @@ -506,5 +506,5 @@ pthread_cond::Signal ()
> */
> int spins = 10;
> - while (InterlockedIncrement (&waiting) != (temp - 1) && spins)
> + while (InterlockedIncrement (&waiting) != temp && spins)
> {
> InterlockedDecrement (&waiting);
>
> [snip]
>
> RC> However the bug is likely the cause for Jasons continued python
> RC> failures.
I tried the above patch. Unfortunately, Python's test_threadedtempfile
regression test case still hangs is the same way.
Jason