inline threads::thread_restart_state suspend(
const pika::chrono::steady_duration& rel_time,
const util::thread_description& description =
pika::util::thread_description(
"this_thread::suspend"),
pika::error_code& ec = throws)
inline threads::thread_restart_state suspend(
const pika::chrono::steady_duration& rel_time,
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 after the given duration.
Declared at: libs/pika/threading_base/include/pika/threading_base/thread_helpers.hpp:552
Parameters
- const pika::chrono::steady_duration& rel_time
- const util::thread_description& description = pika::util::thread_description("this_thread::suspend")
- pika::error_code& ec = throws