Subject: [boost] [boost thread] Catching interrupted exception?
From: Philip Bennefall (philip_at_[hidden])
Date: 2013-07-31 16:32:18


Hi all,

I have a quick question regarding the interruption of Boost threads. I am
making fairly heavy use of the interrupt method call of the thread class,
and I am wondering whether I should be catching the
boost::thread_interrupted exception from within my thread function? I
currently do not and my program runs fine, but I am wondering whether this
is defined behavior or whether I should always be catching the exception and
returning from the function inside the handler?

Kind regards,

Philip Bennefall