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 Subject: Re: Quick testfeedback... From: Robert Collins To: cygwin-developers AT cygwin DOT com In-Reply-To: <20010912132302.A18631@redhat.com> References: <1000209619 DOT 7293 DOT 196 DOT camel AT lifelesswks> <20010912184031 DOT X1285 AT cygbert DOT vinschen DOT de> <20010912184812 DOT Z1285 AT cygbert DOT vinschen DOT de> <20010912125641 DOT A18358 AT redhat DOT com> <20010912192104 DOT B1285 AT cygbert DOT vinschen DOT de> <20010912132302 DOT A18631 AT redhat DOT com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.13 (Preview Release) Date: 13 Sep 2001 08:46:41 +1000 Message-Id: <1000334802.31743.37.camel@lifelesswks> Mime-Version: 1.0 X-OriginalArrivalTime: 12 Sep 2001 22:33:31.0531 (UTC) FILETIME=[F36275B0:01C13BDA] On Thu, 2001-09-13 at 03:23, Christopher Faylor wrote: > On Wed, Sep 12, 2001 at 07:21:04PM +0200, Corinna Vinschen wrote: > >On Wed, Sep 12, 2001 at 12:56:41PM -0400, Christopher Faylor wrote: > >> On Wed, Sep 12, 2001 at 06:48:12PM +0200, Corinna Vinschen wrote: > >> >On Wed, Sep 12, 2001 at 06:40:31PM +0200, Corinna Vinschen wrote: > >> >> On Tue, Sep 11, 2001 at 10:00:11PM +1000, Robert Collins wrote: > >> >> > + if (iswinnt) > >> >> > + InitializeCriticalSection (&criticalsection); > >> >> > + else > >> >> > + { > >> >> > + this->win32_obj_id =::CreateMutex (&sec_none_nih, false, NULL); > >> >> > + if (!win32_obj_id) > >> >> > + magic = 0; > >> >> > + } > >> >> > >> >> Could somebody give me a short hint why we're using critical > >> >> sections on NT only? I need some three word only description... > >> >> something memorable... > >> > > >> >Whoops, is the fact that TryEnterCriticalSection() is only > >> >available since NT4 the reason, perhaps??? > >> > >> Apparently. > >> > >> Cygwin's muto class actually does a sort of critical section and has > >> TryEnterCriticalSection capabilities. > >> > >> I don't think that mutos are necessarily general purpose enough for > >> this but maybe we could do something similar. Or we could probably > >> roll our own version of TryEnterCriticalSection. > > > >Don't worry. I'm just asking to know how to name the new wincap > >flag for that stuff. :-) > > I *am* concerned about YA performance hit on Windows 9x, though. I'd like > to avoid that if possible. No hit, its been like it is now since day 1. (Well actually there was the process wide mutex serialisation when I first started hacking at it, but thats long gone). I just had the opportunity to make NT *faster*. Rob