Boost logo

Threads-Devel :

Subject: Re: [Threads-devel] boost futures vs C++0x futures
From: Anthony Williams (anthony_at_[hidden])
Date: 2010-03-04 04:32:18


On 04/03/10 09:20, Matthias Vallentin wrote:
> On Wed, Mar 03, 2010 at 10:44:51PM +0000, Anthony Williams wrote:
>> * The get_state, is_ready, has_value and has_exception members have gone.
>
> Did the removal of has_exception change the exception propagation
> semantics?

No. The removal of the query functions was due to disagreement about how
the query functions should behave with futures from
std::async(std::launch::sync)

> For example, will and exception thrown from a packaged_task
> propagate?

Yes.

Anthony

-- 
Author of C++ Concurrency in Action     http://www.stdthread.co.uk/book/
just::thread C++0x thread library             http://www.stdthread.co.uk
Just Software Solutions Ltd       http://www.justsoftwaresolutions.co.uk
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976

Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk