bool get_thread_interruption_requested(
    const pika::threads::thread_id_type& id,
    pika::error_code& ec = throws)

Description

Returns whether the given thread has been flagged for interruption.

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

Parameters

const pika::threads::thread_id_type& id
[in] The thread id of the thread which should be queried.
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 \aif the given thread was flagged for interruption. It will return\aotherwise.