hpx::launch#

Defined in header hpx/future.hpp.

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

namespace hpx

Enums

enum class launch_policy : std::int8_t#

Values:

enumerator async#
enumerator deferred#
enumerator task#
enumerator sync#
enumerator fork#
enumerator apply#
enumerator sync_policies#
enumerator async_policies#
enumerator all#
struct launch : public detail::policy_holder<>#
#include <launch_policy.hpp>

Launch policies for hpx::async etc.

Public Functions

inline constexpr launch() noexcept#

Default constructor. This creates a launch policy representing all possible launch modes

inline constexpr launch(detail::async_policy const p) noexcept#

Create a launch policy representing asynchronous execution.

inline constexpr launch(detail::task_policy const p) noexcept#

Create a launch policy representing asynchronous execution, but disabled inline execution.

inline constexpr launch(detail::fork_policy const p) noexcept#

Create a launch policy representing asynchronous execution. The new thread is executed in a preferred way

inline constexpr launch(detail::sync_policy const p) noexcept#

Create a launch policy representing synchronous execution.

inline constexpr launch(detail::deferred_policy const p) noexcept#

Create a launch policy representing deferred execution.

inline constexpr launch(detail::apply_policy const p) noexcept#

Create a launch policy representing fire and forget execution.

template<typename F>
inline constexpr launch(detail::select_policy<F> const &p) noexcept#

Create a launch policy that is dynamically selected at runtime.

template<typename Launch>
inline constexpr launch(Launch l, threads::thread_priority const priority, threads::thread_stacksize const stacksize, threads::thread_schedule_hint const hint) noexcept#

Public Static Attributes

static const detail::async_policy async#

Predefined launch policy representing asynchronous execution.

static const detail::task_policy task#

Predefined launch policy representing asynchronous execution with disabled inline execution

static const detail::fork_policy fork#

Predefined launch policy representing asynchronous execution. The new thread is executed in a preferred way

static const detail::sync_policy sync#

Predefined launch policy representing synchronous execution.

static const detail::deferred_policy deferred#

Predefined launch policy representing deferred execution.

static const detail::apply_policy apply#

Predefined launch policy representing fire and forget execution.

static const detail::select_policy_generator select#

Predefined launch policy representing delayed policy selection.