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


David Abrahams wrote:
> IIUC The 'C' lib functions are "throw()" when invoked from C++, so if
> pthreads mandates that C I/O functions throw in C++, I think your idea
> does violate pthreads.

If it's true that C library functions are throw(), even functions
which are cancellation points, then the rule needs to be that
_calling_ a throw() function disables cancellations for the duration
of the call.

This does seem to prevent deferred cancellations from ever being
delivered, alas.

-- Jamie


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