inline pika::threads::thread_id_ref_type
set_thread_state(
const pika::threads::thread_id_type& id,
const pika::chrono::steady_duration& rel_time,
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)
inline pika::threads::thread_id_ref_type
set_thread_state(
const pika::threads::thread_id_type& id,
const pika::chrono::steady_duration& rel_time,
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 (after the given duration)
Declared at: libs/pika/threading_base/include/pika/threading_base/thread_helpers.hpp:147
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_duration& rel_time
- [in] Time duration after which the new thread should be run
- 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.