Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > > * 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