This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: catch(...) and forced unwind


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]