std::size_t get_error_os_thread(
const pika::exception_info& xi)
std::size_t get_error_os_thread(
const pika::exception_info& xi)Description
Return the sequence number of the OS-thread used to execute pika-threads from which the exception was thrown.
The function \acan be used to extract the diagnostic information element representing the sequence number of the OS-thread as stored in the given exception instance.
Declared at: libs/pika/runtime/include/pika/runtime/custom_exception_info.hpp:418
Parameters
- const pika::exception_info& xi
- The parameter \pwill be inspected for the requested diagnostic information elements which have been stored at the point where the exception was thrown. This parameter can be one of the following types: \a\a\aor\a
Returns
The sequence number of the OS-thread used to execute the pika-thread from which the exception was thrown. If the exception instance does not hold this information, the function will return std::size(-1).