X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B06A11C.6030101@cwilson.fastmail.fm>
Date: Fri, 20 Nov 2009 09:01:00 -0500
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.5.25-15: pthread_join deadlocks
References: <20091119124405.GF29173@calimero.vinschen.de> <4B067444.80900@ece.cmu.edu>
In-Reply-To: <4B067444.80900@ece.cmu.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Ryan Johnson wrote:
> Out of curiosity, how much did removing the racy optimization hurt
> performance? The patch just yanked it completely iirc. An alternative
> might be to have the main thread check for single-thread environment
> only at acquire time, and then release only if it acquired (the latter
> is probably a good idea regardles...).

The problem is, IIRC there is no such thing as a single-thread
environment for cygwin programs: every cygwin program has a secondary
thread that handles translating certain windows events into unixy
signals, or something like that. I think.

--
Chuck

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

