hpx/distribution_policies/unwrapping_result_policy.hpp

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace components
struct unwrapping_result_policy
#include <unwrapping_result_policy.hpp>

This class is a distribution policy that can be using with actions that return futures. For those actions it is possible to apply certain optimizations if the action is invoked synchronously.

Public Functions

unwrapping_result_policy(id_type const &id)
template<typename Client, typename Stub>
unwrapping_result_policy(client_base<Client, Stub> const &client)
template<typename Action, typename ...Ts>
async_result<Action>::type async(launch policy, Ts&&... vs) const
template<typename Action, typename ...Ts>
async_result<Action>::type async(launch::sync_policy, Ts&&... vs) const
template<typename Action, typename Callback, typename ...Ts>
async_result<Action>::type async_cb(launch policy, Callback &&cb, Ts&&... vs) const
template<typename Action, typename Continuation, typename ...Ts>
bool apply(Continuation &&c, threads::thread_priority priority, Ts&&... vs) const

Note

This function is part of the invocation policy implemented by this class

template<typename Action, typename ...Ts>
bool apply(threads::thread_priority priority, Ts&&... vs) const
template<typename Action, typename Continuation, typename Callback, typename ...Ts>
bool apply_cb(Continuation &&c, threads::thread_priority priority, Callback &&cb, Ts&&... vs) const

Note

This function is part of the invocation policy implemented by this class

template<typename Action, typename Callback, typename ...Ts>
bool apply_cb(threads::thread_priority priority, Callback &&cb, Ts&&... vs) const
hpx::id_type const &get_next_target() const
template<typename Action>
struct async_result

Public Types

template<>
using type = typename traits::promise_local_result::type