[c++-pthreads] pthread_cancel and EH: let's try this again

Peter Dimov pdimov at mmltd.net
Mon Jul 18 15:53:23 UTC 2005


Ted Baker wrote:
> On Mon, Jul 18, 2005 at 04:48:43PM +0300, Peter Dimov wrote:

>> ... but C++, a language with exceptions and almost a decade of
>> experience in exception safety declares cancellation unsafe and
>> actively prohibits its use?
>
> Yes, because it is unsafe, and C++ wants to be safer than C.

I'm not sure I follow. In what way is a cancellation exception less safe 
than any other exception? 




More information about the c++-pthreads mailing list