HPX - High Performance ParalleX

PrevUpHomeNext

Function template wait_all

hpx::wait_all

Synopsis

// In header: <hpx/lcos/wait_all.hpp>


template<typename R> void wait_all(std::vector< future< R >> && futures);

Description

The function wait_all is a operator allowing to join on the result of all given futures. It AND-composes all future objects given and returns the same list of futures after they finished executing.

[Note] Note

The function wait_all returns after all futures have become ready. All input futures are still valid after wait_all returns.

Parameters:

futures

A vector holding an arbitrary amount of future or shared_future objects for which wait_all should wait.


PrevUpHomeNext