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
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 p) noexcept#

Create a launch policy representing asynchronous execution.

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

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

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

Create a launch policy representing synchronous execution.

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

Create a launch policy representing deferred execution.

inline constexpr launch(detail::apply_policy 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 representing fire and forget execution.

template<typename Launch, typename Enable = std::enable_if_t<hpx::traits::is_launch_policy_v<Launch>>>
inline constexpr launch(Launch l, threads::thread_priority priority, threads::thread_stacksize stacksize, threads::thread_schedule_hint hint) noexcept#

Public Static Attributes

static const detail::async_policy async#

Predefined launch policy representing asynchronous 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.

Friends

inline friend launch tag_invoke(hpx::execution::experimental::with_priority_t, launch const &policy, threads::thread_priority priority) noexcept#
inline friend constexpr friend hpx::threads::thread_priority tag_invoke (hpx::execution::experimental::get_priority_t, launch const &policy) noexcept
inline friend launch tag_invoke(hpx::execution::experimental::with_stacksize_t, launch const &policy, threads::thread_stacksize stacksize) noexcept#
inline friend constexpr friend hpx::threads::thread_stacksize tag_invoke (hpx::execution::experimental::get_stacksize_t, launch const &policy) noexcept
inline friend launch tag_invoke(hpx::execution::experimental::with_hint_t, launch const &policy, threads::thread_schedule_hint hint) noexcept#
inline friend constexpr friend hpx::threads::thread_schedule_hint tag_invoke (hpx::execution::experimental::get_hint_t, launch const &policy) noexcept