delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/11/23/22:16:29

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Fri, 23 Nov 2001 22:19:42 -0500
From: Jason Tishler <jason AT tishler DOT net>
To: cygwin-developers AT cygwin DOT com
Subject: Re: pthread_mutex_init fails
Message-ID: <20011123221942.E500@dothill.com>
Mail-Followup-To: cygwin-developers AT cygwin DOT com
Mime-Version: 1.0
In-Reply-To: <1723856675.20011118174249@logos-m.ru>
User-Agent: Mutt/1.3.18i

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 AT logos-m DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019