void interrupt_thread(
    const pika::threads::thread_id_type& id,
    bool flag,
    pika::error_code& ec = throws)

Description

Flag the given thread for interruption.

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

Parameters

const pika::threads::thread_id_type& id
[in] The thread id of the thread which should be interrupted.
bool flag
[in] The flag encodes whether the thread should be interrupted (if it is \aor 'uninterrupted' (if it is \a
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.