std::size_t get_thread_phase(
    const pika::threads::thread_id_type& id,
    pika::error_code& ec = throws)

Description

//////////////////////////////////////////////////////////////////////// The function get_thread_phase is part of the thread related API. It queries the phase of one of the threads known to the thread-manager.

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

Parameters

const pika::threads::thread_id_type& id
[in] The thread id of the thread the phase should be modified for.
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 thread phase of the thread referenced by the \aparameter. If the thread is not known to the thread-manager the return value will be ~0.