This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: pthreads works, sorta
- To: "Cygwin List (E-mail)" <cygwin at cygwin dot com>
- Subject: RE: pthreads works, sorta
- From: Steve Jorgensen <jorgens at coho dot net>
- Date: Tue, 26 Jun 2001 23:11:27 -0700
- Reply-To: "jorgens at coho dot net" <jorgens at coho dot net>
OK, I'm over my head to even try to participate in this, but it seems to me
that if you want to check for the condition where you can neither read nor
write, and you can never write if you can't read, then you only need to
check the read condition. You only need to check the write condition if
you need to distinguish between read-only and read/write.
-----Original Message-----
From: Robert Collins [SMTP:robert.collins@itdomain.com.au]
Sent: Tuesday, June 26, 2001 10:49 PM
To: Tak Ota; cygwin@cygwin.com
Subject: RE: pthreads works, sorta
> -----Original Message-----
> From: Tak Ota [mailto:Takaaki.Ota@am.sony.com]
> Sent: Wednesday, June 27, 2001 3:53 PM
> To: cygwin@cygwin.com
> Subject: Re: pthreads works, sorta
>
>
> I'm not sure either. If that is the case, replacing IsBadWritePtr
> with IsBadReadPtr maybe the answer since can't read mans can't write.
>
Nope, write is the one :]
IIRC my cpu bits correctly there is a page bit for readonly, not page
bits for read and for write.
So writeable implies readable, readable does not imply writeable.
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/
--
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/