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

Nathan Sidwell nathan at codesourcery.com
Tue Jul 12 09:07:57 UTC 2005


Alexander Terekhov wrote:
> Nathan Sidwell wrote:
> [...]
> 
>>I suppose it would be possible to determine one was inside a nothrow function
>>during the stack scanning phase of exception handling, and then not throw the
>>exception if that were the case.  But this relies on 2-phase unwinding and
>>restartable exceptions.  
> 
> 
> What do you mean by "restartable exceptions"? 2-phase EH exposing 
> conditional throw is sufficient. 

that's what I thought.  However, this is relying on implementation details of 
the exception handling that are not expressible in the language (so someother 
implementation might not be able to do this).  It's also not clear to me how one 
would implement the necessary delay to retrying the thread cancellation until 
one had returned from the nothrow function.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan at codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk




More information about the c++-pthreads mailing list