[c++-pthreads] Re: pthread_cancel and EH: let's try this again
Jakub Jelinek
jakub at redhat.com
Fri Jul 15 07:36:49 UTC 2005
On Fri, Jul 15, 2005 at 12:29:05AM -0700, Mark Mitchell wrote:
> Sorry, I didn't mean that I didn't believe you; it's just that my RHEL 3
> box doesn't have that, so I was slightly surprised.
In RHEL3 it is in /usr/include/nptl/pthread.h.
> That means that, as you say, you've committed to using an exception to
> implement thread cancellation. So, now you get the semantics of
> exceptions -- including that they can be caught by "catch (...)".
I wouldn't say that. NPTL simply requires that class destructors
are run during cancellation's forced unwinding. I don't see why it would
imply something about catch (...) though, it still doesn't mean cancellation
is an exception, just that some mechanism runs the class destructors.
Jakub
More information about the c++-pthreads
mailing list