Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-02-08 11:23:37


Christopher Currie <christopher_at_[hidden]> writes:

> Slawomir Lisznianski wrote:
>> Are there any plans to support handling of exceptions thrown during
>> joinable thread execution? I recall Usenet discussions with proposals
>> varying from Futures to throwable join():
>> try {
>> thread.join();
>> }
>> catch (std::runtime_error& e) {
>> ...
>> }
>> Any ideas?
>
> Doesn't this require a certain amount of compiler support?

Yes.

> IIRC, some compilers don't support throwing exceptions across thread
> boundaries...

Right. This can't be done portably.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk