pthread_mutex_init fails

Jason Tishler jason@tishler.net
Fri Nov 23 19:16:00 GMT 2001


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



More information about the Cygwin-developers mailing list