delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/27/01:44:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Subject: RE: pthreads works, sorta
MIME-Version: 1.0
Date: Wed, 27 Jun 2001 15:32:03 +1000
Message-ID: <EA18B9FA0FE4194AA2B4CDB91F73C0EF7A0E@itdomain002.itdomain.net.au>
content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: pthreads works, sorta
Thread-Index: AcD+yS0CQMxphXMVSdetc62gn97W0wAAAz4Q
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Ross Smith" <ross DOT s AT ihug DOT co DOT nz>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id BAA31587

> -----Original Message-----
> From: Ross Smith [mailto:ross DOT s AT ihug DOT co DOT nz]
> Sent: Wednesday, June 27, 2001 3:31 PM
> To: cygwin AT cygwin DOT com
> Subject: Re: pthreads works, sorta
> 
> 
> Robert Collins wrote:
> > 
> > What does all this mean? We need to catch invalid memroy access,
> 
> Why? A program that passes an invalid thread handle is broken.
> Penalising non-broken programs merely to provide better error checking
> for broken ones doesn't sound reasonable to me.
> 

Even though the POSIX behaviour is undefined for passed invalid thread
variables, cygwin1.dll locking up is not a pretty way to handle failure.


However, I'll consider removing the checks for non-debug builds of
cygwin, but _only_ once the in-cygwin code is considered stable and
complete. Until then I'm leery of having a no-check environment.

Still I've found what seems to be a good alternative function that is
_much_ faster, and still provides the reliability I was looking for.

Rob

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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