void suspend_processing_unit_cb(
util::function<void()> callback,
pika::threads::thread_pool_base& pool,
std::size_t virt_core,
pika::error_code& ec = throws)
void suspend_processing_unit_cb(
util::function<void()> callback,
pika::threads::thread_pool_base& pool,
std::size_t virt_core,
pika::error_code& ec = throws)Description
Suspends the given processing unit. Takes a callback as a parameter which will be called when the processing unit has been suspended.
Declared at: libs/pika/thread_pool_util/include/pika/thread_pool_util/thread_pool_suspension_helpers.hpp:80
Parameters
- util::function<void()> callback
- [in] Callback which is called when the processing unit has been suspended.
- pika::threads::thread_pool_base& pool
- std::size_t virt_core
- [in] The processing unit to suspend.
- 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.