[c++-pthreads] Re: thread-safety definition

Richard Henderson rth at redhat.com
Fri Jan 9 08:20:36 UTC 2004


On Fri, Jan 09, 2004 at 07:01:31AM +0100, Wil Evers wrote:
> A second exception escaping from a destructor called while unwinding
> the stack because of some earlier exception will result in program
> termination.
> 
> If catching (and not rethrowing) this second exception breaks the 
> cancellation machinery, then it is the cancellation machinery - and not 
> the program in question - that is broken.  In other words: we need a way 
> to prevent this scenario.

It would be trivial to adjust the c++ runtime to disable cancelation
while exceptions are in flight.  That avoids that scenario entirely.


r~



More information about the c++-pthreads mailing list