This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: pthreads works, sorta


> -----Original Message-----
> From: Ross Smith [mailto:ross.s@ihug.co.nz]
> Sent: Wednesday, June 27, 2001 3:31 PM
> To: cygwin@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]