16 Jul
2008
16 Jul
'08
6:47 p.m.
on Wed Jul 16 2008, Ruediger Berlich
Hi there,
is there a recommended strategy for exception (or more generally error-)handling with Boost.thread ? From what I can see it is not safe to throw an exception from within a thread, as it is not sure who catches it (or whether it gets caught at all).
You can throw as long as the exception will be caught before it propagates out of the thread function. You can always put a try/catch(...) block in all your thread functions. -- Dave Abrahams BoostPro Computing http://www.boostpro.com