[c++-pthreads] Re: pthread_cancel and EH: let's try this again
Jakub Jelinek
jakub at redhat.com
Mon Jul 11 22:52:35 UTC 2005
On Mon, Jul 11, 2005 at 06:34:13PM -0400, David Abrahams wrote:
> Nathan Sidwell <nathan at codesourcery.com> writes:
>
> > IMHO #1 is better, for it also allows us to say 'thread cancellation is
> > *exactly* like exception handling'.
>
> It's more than that. #2 changes the exception handling model.
> Simplicity of definition and programming model is crucial. People
> already have enough trouble coming to grips with exception safety.
> Introducing #2 complicates the EH model, so I oppose it on those
> grounds also.
Can you explain why? Nothing says that what pthread_cancel does is throwing
an exception. So what exactly it does is outside of the scope of the
current C++ standard.
Jakub
More information about the c++-pthreads
mailing list