From: Erik Hensema <erik.hensema@group2000.nl>
To: egcs@cygnus.com
Cc: 'Pthreads-win32' <pthreads-win32@sourceware.cygnus.com>
Subject: RE: cancelation problem
Date: Tue, 09 Nov 1999 23:41:00 -0000 [thread overview]
Message-ID: <A01E735D4940D311A3850090275559330BA99D@NTSRV02> (raw)
> -----Original Message-----
> From: Ross Johnson [ mailto:rpj@ise.canberra.edu.au ]
> The thread I want
> > to cancel has PTHREAD_CANCEL_ASYNCHRONOUS, however, this
> piece of code
> > blocks on the join():
[...]
> > The thread recvThread seems to block on a select() call. It
> doesn't get
> > cancelled.
>
[...]
> Pthreads-win32 doesn't support asynchronous cancelation, only
> deferred, which is also very limited. The reason there is no async
> cancelation is that it's very hard, if not impossible, to implement
> on top of Win32.
Ok, thank you for your explaination. I have solved the problem by adding a
timeout to the select() call, and looping it infinitely. The thread
cancelation now works as it should.
>
next reply other threads:[~1999-11-09 23:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-09 23:41 Erik Hensema [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-11-08 2:20 Erik Hensema
1999-11-09 17:20 ` Ross Johnson
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=A01E735D4940D311A3850090275559330BA99D@NTSRV02 \
--to=erik.hensema@group2000.nl \
--cc=egcs@cygnus.com \
--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).