
7 Feb
2009
7 Feb
'09
7:30 p.m.
Boris Schaeling wrote:
Why is thread_interrupted not derived from thread_exception or std::exception? It might easily slip through a try/catch-block, and if I hadn't looked up the header file now it might have slipped through mine.
I assume, this is the intention. The thread_interrupted exception is thrown when the thread is canceled in order to unwind the stack up to the Boost.Thread thread function trampoline. Normally, you should not catch it.