pika::threads::thread_id_ref_type
set_thread_state(
    const pika::threads::thread_id_type& id,
    const pika::chrono::steady_time_point&
        abs_time,
    std::atomic<bool>* started,
    pika::threads::thread_schedule_state state =
        thread_schedule_state::pending,
    pika::threads::thread_restart_state stateex =
        thread_restart_state::timeout,
    pika::threads::thread_priority priority =
        thread_priority::normal,
    bool retry_on_active = true,
    pika::error_code& ec = throws)

Description

Set the thread state of the \areferenced by the thread_id \a

//////////////////////////////////////////////////////////////////// Set a timer to set the state of the given \ato the given new value after it expired (at the given time)

Declared at: libs/pika/threading_base/include/pika/threading_base/thread_helpers.hpp:101

Parameters

const pika::threads::thread_id_type& id
[in] The thread id of the thread the state should be modified for.
const pika::chrono::steady_time_point& abs_time
[in] Absolute point in time for the new thread to be run
std::atomic<bool>* started
[in,out] A helper variable allowing to track the state of the timer helper thread
pika::threads::thread_schedule_state state = thread_schedule_state::pending
[in] The new state to be set for the thread referenced by the \aparameter.
pika::threads::thread_restart_state stateex = thread_restart_state::timeout
[in] The new extended state to be set for the thread referenced by the \aparameter.
pika::threads::thread_priority priority = thread_priority::normal
bool retry_on_active = true
pika::error_code& ec = throws
[in,out] this represents the error status on exit, if this is pre-initialized to \athe function will throw on error instead.