void interruption_point(
    const pika::threads::thread_id_type& id,
    pika::error_code& ec = throws)

Description

//////////////////////////////////////////////////////////////////////// Interrupt the current thread at this point if it was canceled. This will throw a thread_interrupted exception, which will cancel the thread.

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

Parameters

const pika::threads::thread_id_type& id
[in] The thread id of the thread which should be interrupted.
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.