catch(...) and forced unwind

Richard Henderson rth@redhat.com
Tue Dec 16 00:04:00 GMT 2003


On Mon, Dec 15, 2003 at 04:55:57PM -0600, Benjamin Kosnik wrote:
> >Keep in mind that __cancel_cancellation WILL NOT WORK without help from
> >and buy-in from the pthread library.  Which does not currently exist.
> 
> Perhaps you mean __continue_cancellation?

Whatever.

> What's needed from the pthreads library to make this work?

You have to be able to say that the thread is no longer in pending
cancellation state.  Otherwise you'll never get re-cancelled.

POSIX allows a cancellation handler to call functions that are
cancellation points.  Which means that the library cannot just
re-raise the cancellation exception on the next call to write.


r~



More information about the Gcc mailing list