void suspend_pool_cb(
    pika::threads::thread_pool_base& pool,
    util::function<void()> callback,
    pika::error_code& ec = throws)

Description

Suspends the thread pool. Takes a callback as a parameter which will be called when all OS threads on the thread pool have been suspended.

Declared at: libs/pika/thread_pool_util/include/pika/thread_pool_util/thread_pool_suspension_helpers.hpp:132

Parameters

pika::threads::thread_pool_base& pool
util::function<void()> callback
[in] called when the thread pool has been suspended.
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.