HPX

PrevUpHomeNext

Header <hpx/runtime/threads/thread_helpers.hpp>

namespace hpx {
  namespace this_thread {
    threads::thread_state_ex_enum 
    suspend(threads::thread_state_enum, threads::thread_id_type const &, 
            util::thread_description const & = util::thread_description("this_thread::suspend"), 
            error_code & = throws);
    threads::thread_state_ex_enum 
    suspend(threads::thread_state_enum = threads::pending, 
            util::thread_description const & = util::thread_description("this_thread::suspend"), 
            error_code & = throws);
    threads::thread_state_ex_enum 
    suspend(util::steady_time_point const &, threads::thread_id_type const &, 
            util::thread_description const & = util::thread_description("this_thread::suspend"), 
            error_code & = throws);
    threads::thread_state_ex_enum 
    suspend(util::steady_time_point const &, 
            util::thread_description const & = util::thread_description("this_thread::suspend"), 
            error_code & = throws);
    threads::thread_state_ex_enum 
    suspend(util::steady_duration const &, 
            util::thread_description const & = util::thread_description("this_thread::suspend"), 
            error_code & = throws);
    threads::thread_state_ex_enum 
    suspend(util::steady_duration const &, threads::thread_id_type const &, 
            util::thread_description const & = util::thread_description("this_thread::suspend"), 
            error_code & = throws);
    threads::thread_state_ex_enum 
    suspend(std::uint64_t, 
            util::thread_description const & = util::thread_description("this_thread::suspend"), 
            error_code & = throws);
    threads::executors::current_executor get_executor(error_code & = throws);
  }
  namespace threads {
    thread_state 
    set_thread_state(thread_id_type const &, thread_state_enum = pending, 
                     thread_state_ex_enum = wait_signaled, 
                     thread_priority = thread_priority_normal, 
                     hpx::error_code & = throws);
    thread_id_type 
    set_thread_state(thread_id_type const &, util::steady_time_point const &, 
                     thread_state_enum = pending, 
                     thread_state_ex_enum = wait_timeout, 
                     thread_priority = thread_priority_normal, 
                     error_code & = throws);
    thread_id_type 
    set_thread_state(thread_id_type const &, util::steady_duration const &, 
                     thread_state_enum = pending, 
                     thread_state_ex_enum = wait_timeout, 
                     thread_priority = thread_priority_normal, 
                     error_code & = throws);
    util::thread_description 
    get_thread_description(thread_id_type const &, error_code & = throws);
    util::thread_description 
    set_thread_description(thread_id_type const & id, 
                           util::thread_description const & desc = util::thread_description(), 
                           error_code & ec = throws);
    util::thread_description 
    get_thread_lco_description(thread_id_type const & id, 
                               error_code & ec = throws);
    util::thread_description 
    set_thread_lco_description(thread_id_type const & id, 
                               util::thread_description const & desc = util::thread_description(), 
                               error_code & ec = throws);
    thread_state 
    get_thread_state(thread_id_type const &, error_code & = throws);
    std::size_t get_thread_phase(thread_id_type const &, 
                                 error_code & = throws);
    std::size_t get_numa_node_number();
    bool get_thread_interruption_enabled(thread_id_type const &, 
                                         error_code & = throws);
    bool set_thread_interruption_enabled(thread_id_type const &, bool, 
                                         error_code & = throws);
    bool get_thread_interruption_requested(thread_id_type const &, 
                                           error_code & = throws);
    void interrupt_thread(thread_id_type const &, bool, error_code & = throws);
    void interrupt_thread(thread_id_type const & id, error_code & ec = throws);
    void interruption_point(thread_id_type const &, error_code & = throws);
    threads::thread_priority 
    get_thread_priority(thread_id_type const &, error_code & = throws);
    std::ptrdiff_t 
    get_stack_size(thread_id_type const &, error_code & = throws);
    threads::executors::current_executor 
    get_executor(thread_id_type const &, error_code & = throws);
  }
}

PrevUpHomeNext