[c++-pthreads] Re: FW: RE: Re: I'm Lost

George Shimanovich gshiman at commvault.com
Wed Mar 8 17:08:33 UTC 2006


>I don't think we should support unstoppable exceptions at all.
Silently
>rethrowing at the end of a catch handler breaks too many important
>invariants.

For example, it is not compatible with thread pool implementations that
try to reuse its threads regardless of how thread callback completes,
normally or via thread cancellation. Note that since cancellation
exception can only be caught via catch(...) there is no way to
distinguish it from any system, non-C++ exception and thus decide to
rethrow.

George Shimanovich



More information about the c++-pthreads mailing list