public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: Erik Hensema <erik.hensema@group2000.nl>
To: 'Pthreads-win32' <pthreads-win32@sourceware.cygnus.com>
Subject: The FAQ (was: RE: Activity on this list)
Date: Wed, 05 Jan 2000 00:07:00 -0000	[thread overview]
Message-ID: <A01E735D4940D311A3850090275559330BA9D9@NTSRV02> (raw)

> -----Original Message-----
> From: Ross Johnson [ mailto:rpj@ise.canberra.edu.au ]
[....]
> A new snapshot should be out soon but if you have access to the CVS
> repository and don't mind building the library from source you can
> get the latest as of yesterday. This includes Jason Nye's async
> cancelation and some other improvements. I have one or two other
> contributions to incorporate before the next snapshot which will
> definitely be out in the next couple of days.

It sure looks good (I only browsed the code, didn't compile it).

However, the FAQ was updated with a question about cancellation I asked  on
this list, and while the question is still valid, the answer is outdated by
the recent changes in cancellation (it mentiones async cancels don't work,
while they in most cases do now).

So, the answer to Q4 should be something like:

"Pthreads-win32 only partially supports asynchronous cancellation. If the
thread you're trying to cancel is blocked (for instance, it could be waiting
for data from the network), it will only get cancelled when it unblocks
(when the data arrives). Unfortunately, there is no way to do so from
outside the thread."

> PS. I like to try to only commit tested code to the CVS main branch,
> and the latest changes have passed the expanded test suite, so
> grabbing the sources from the repository shouldn't be too risky.
> 

I bet it won't cancel this code:

HANDLE h=CreateEvent(...);
WaitForSingleObject(h, INFINITE);

Where the event never gets signalled.

However, I'm still not sure if this is Posixly correct behaviour: Posix only
specifies the thread should be canceled ASAP, but possible==never in this
case...

> 

                 reply	other threads:[~2000-01-05  0:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A01E735D4940D311A3850090275559330BA9D9@NTSRV02 \
    --to=erik.hensema@group2000.nl \
    --cc=pthreads-win32@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).