$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [thread] Why is thread_interrupted not derived from thread_exception or std::exception?
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2009-02-07 14:30:16
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.