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

George Shimanovich gshiman at commvault.com
Thu Jul 21 14:17:31 UTC 2005


Peter Dimov wrote:

>But under the model described so far, a cancellation request is a bit
too 
>sticky; it's impossible to ignore.
>
>To address this, I propose that we provide an explicit API to clear a 
>pending cancellation request... or at least specify it in case someone
>wants 
>to revise his opinion on the irreversibility of cancellation. ;-)

Exactly. The reason why some applications cannot rethrow caught
cancellation exception (Linux/gcc) was that worker threads in typical
thread pool implementation are reusable. Explicit call to clear pending
cancellation request will allow cancelled worker thread to return to
list of idle threads.

George Shimanovich
CommVault Systems



More information about the c++-pthreads mailing list