bool set_thread_interruption_enabled(
const pika::threads::thread_id_type& id,
bool enable,
pika::error_code& ec = throws)
bool set_thread_interruption_enabled(
const pika::threads::thread_id_type& id,
bool enable,
pika::error_code& ec = throws)Description
Set whether the given thread can be interrupted at this point.
Declared at: libs/pika/threading_base/include/pika/threading_base/thread_helpers.hpp:278
Parameters
- const pika::threads::thread_id_type& id
- [in] The thread id of the thread which should receive the new value.
- bool enable
- [in] This value will determine the new interruption enabled status for the given thread.
- 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.
Returns
This function returns the previous value of whether the given thread could have been interrupted.