inline threads::thread_restart_state suspend(
    std::uint64_t ms,
    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 time (specified in milliseconds).

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

Parameters

std::uint64_t ms
const util::thread_description& description = pika::util::thread_description("this_thread::suspend")
pika::error_code& ec = throws