Boost logo

Boost Users :

Subject: Re: [Boost-users] Await the result of several futures to chain another task
From: Kaspar Fischer (kaspar.fischer_at_[hidden])
Date: 2013-12-05 19:01:49


Thanks, Vicente, for the update and for your efforts – whenever it comes to
Boost, this will be great!

Cheers,
Kaspar

On Thu, Dec 5, 2013 at 1:38 PM, Vicente J. Botet Escriba <
vicente.botet_at_[hidden]> wrote:

> Le 05/12/13 19:47, Kaspar Fischer a écrit :
>
> Hi,
>
> If I have two futures f1 and f2, can I compose them to a future that
> completes with the result of f1 and f2 when both f1 and f2 have finished?
> I'd like to have a future so that I can use the then()<http://www.boost.org/doc/libs/1_55_0/doc/html/thread/synchronization.html#thread.synchronization.futures.reference.unique_future>method to run another transformation.
>
> I see method wait_for_all()<http://www.boost.org/doc/libs/1_55_0/doc/html/thread/synchronization.html#thread.synchronization.futures.reference.wait_for_all>but this method blocks.
>
>
> Hi, I'm working on when_all/when_any functions, but there are a lot of
> restrictions. See [1]. I don't think it would be completely ready for
> Boost.1.56.
>
> You can play with it, but I don't believe you could use it on a product.
>
> Best,
> Vicente
>
> [1]
> http://svn.boost.org/svn/boost/branches/release/libs/thread/example/future_when_all.cpp
> .
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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