hpx/components/executor_component.hpp

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

namespace hpx
namespace components
template<typename Executor, typename BaseComponent>
struct executor_component : public BaseComponent

Public Functions

template<typename ...Arg>
executor_component(executor_type const &exec, Arg&&... arg)

Public Static Functions

static void execute(hpx::threads::thread_function_type const &f)
template<typename Executor_ = Executor>
static void schedule_thread(hpx::naming::address::address_type lva, naming::address::component_type, hpx::threads::thread_init_data &data, hpx::threads::thread_schedule_state)

This is the default hook implementation for schedule_thread which forwards to the executor instance associated with this component.

Protected Attributes

executor_type exec_

Private Types

template<>
using base_type = BaseComponent
template<>
using executor_type = Executor
template<>
using this_component_type = typename base_type::this_component_type