|
Boost Users : |
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-07-16 16:20:01
"Emil Dotchevski" <emil_at_[hidden]> writes:
> Yet to be released Boost 1.36 includes the new Exception library which
> among other things supports transporting of exceptions between
> threads.
This is true. However, users need to be aware that there are currently
no mechanisms in place with the thread library to do this
automatically: if you want to transport exceptions you need to catch
them with boost.Exception yourself, and then transport them.
My futures library
(http://www.justsoftwaresolutions.co.uk/threading/updated-implementation-of-c++-futures-3.html)
which is on the Boost review queue provides a packaged_task which can
be used with boost.thread to transport exceptions to the thread that
is waiting for the result.
Anthony
-- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net