threads::thread_restart_state suspend(
const pika::chrono::steady_time_point&
abs_time,
threads::thread_id_type id,
const util::thread_description& description =
pika::util::thread_description(
"this_thread::suspend"),
pika::error_code& ec = throws)
threads::thread_restart_state suspend(
const pika::chrono::steady_time_point&
abs_time,
threads::thread_id_type id,
const util::thread_description& description =
pika::util::thread_description(
"this_thread::suspend"),
pika::error_code& ec = throws)Description
The function \awill return control to the thread manager (suspends the current thread). It sets the new state of this thread to \aand schedules a wakeup for this threads at the given time.
Declared at: libs/pika/threading_base/include/pika/threading_base/thread_helpers.hpp:502
Parameters
- const pika::chrono::steady_time_point& abs_time
- threads::thread_id_type id
- const util::thread_description& description = pika::util::thread_description("this_thread::suspend")
- pika::error_code& ec = throws