[c++-pthreads] Re: pthread_cancel and EH: let's try this again
Daniel Jacobowitz
drow at false.org
Wed Jul 13 15:53:42 UTC 2005
On Wed, Jul 13, 2005 at 03:35:30PM +0100, Nathan Sidwell wrote:
> >Compatibility with existing pthreads code is more important than
> >consistency with C++ exceptions.
>
> Another point of interest, which I'm sure you've considered, is that
> standard C functions such as write are deemed to be nothrow by C++, yet are
> cancellation points in pthreads. Scheme #2 stops this blowing up (by
> deferring cancellation inside such function). Scheme #1 blows up by
> calling std::unexpected.
Um, if you defer cancellation inside all of the standard library
functions which C++ considers nothrow (which is pretty much all of the
cancellation points), then how do you ever get cancelled?
--
Daniel Jacobowitz
CodeSourcery, LLC
More information about the c++-pthreads
mailing list