Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does the cancelation exception have a name?


  • To: c++-pthreads@xxxxxxxxxxxxxxxx
  • Subject: Re: Does the cancelation exception have a name?
  • From: Alexander Terekhov <terekhov@xxxxxx>
  • Date: Thu, 02 Nov 2006 11:07:09 +0100

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.