Does the cancelation exception have a name?
Alexander Terekhov
terekhov at web.de
Thu Nov 2 10:07:09 UTC 2006
Peter Dimov wrote:
[...]
> We are currently discussing, on the c++std-ext reflector, the possible
> approaches for a C++ cancelation/retirement/interruption mechanism. So I was
> trying to decide whether imposing a requirement that the cancel exception
> has a C++ type by which it can be caught is workable and reasonable. It
> seems to be both.
Don't forget pthread_exit() and longjmp() (there should be a base class
ala thread_termination_request for thread cancel and thread exit
exceptions). Time to kill ugly forced unwind altogether (getting rid of
undefined behavior resulting from "more restricted behavior" for longjmp()
would not hurt either).
regards,
alexander.
More information about the c++-pthreads
mailing list