DiSMEC++
|
Strong typedef for an int to signify a thread id. More...
#include <thread_id.h>
Private Member Functions | |
constexpr | opaque_int_type (T v) noexcept |
! Explicit constructor from an underlying int. More... | |
Additional Inherited Members | |
Public Member Functions inherited from dismec::opaque_int_type< thread_id_t > | |
constexpr | opaque_int_type (std::int_fast32_t v) noexcept |
! Explicit constructor from an underlying int. More... | |
constexpr std::int_fast32_t | to_index () const |
! Explicitly convert to an integer. More... | |
Protected Attributes inherited from dismec::opaque_int_type< thread_id_t > | |
std::int_fast32_t | m_Value |
Strong typedef for an int to signify a thread id.
This value represents an id for a thread. These IDs are only unique within a single run, and can be used (with the to_index()
method to manage thread-local data.
Implemented as a subclass of opaque_int_type
instead of a typedef because this makes forward declarations easier.
Definition at line 20 of file thread_id.h.
|
inlineexplicitconstexprprivatenoexcept |
! Explicit constructor from an underlying int.
Definition at line 29 of file opaque_int.h.