hpx::sync (distributed)
hpx::sync (distributed)#
Defined in header hpx/async.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
-
namespace hpx
Functions
-
template<typename Action, typename Target, typename ...Ts>
decltype(auto) sync(Action &&action, Target &&target, Ts&&... ts)# The distributed implementation of
hpx::sync
can be used by giving an action instance as argument instead of a function, and also by providing another argument with the locality ID or the target ID. The action executes synchronously.- Template Parameters
Action – The type of action instance
Target – The type of target where the action should be executed
Ts – The type of any additional arguments
- Parameters
action – The action instance to be executed
target – The target where the action should be executed
ts – Additional arguments
- Returns
hpx::future
referring to the shared state created by this call tohpx::sync
-
template<typename Action, typename Target, typename ...Ts>