|
ThreadSchedule 4.1.0
Modern C++ thread management library
|
#include <thread_id.hpp>
Public Member Functions | |
| constexpr | thread_id (std::int64_t value) |
| Construct and validate a thread id. | |
Static Public Member Functions | |
| static auto | create (std::int64_t value) noexcept -> result< thread_id > |
| Construct a thread id without exceptions. | |
Friends | |
| struct | detail::thread_id_access |
| constexpr auto | operator== (thread_id lhs, thread_id rhs) noexcept -> bool |
| constexpr auto | operator!= (thread_id lhs, thread_id rhs) noexcept -> bool |
| constexpr auto | operator< (thread_id lhs, thread_id rhs) noexcept -> bool |
Definition at line 21 of file thread_id.hpp.
|
inlineexplicitconstexpr |
Construct and validate a thread id.
| value | Positive numeric thread id. |
| std::invalid_argument | if value is not positive. |
Definition at line 29 of file thread_id.hpp.
Referenced by create(), operator!=, operator<, and operator==.
|
inlinestaticnodiscardnoexcept |
Construct a thread id without exceptions.
| value | Positive numeric thread id. |
errc::invalid_argument. Definition at line 37 of file thread_id.hpp.
References thread_id(), and threadschedule::unexpected().
|
friend |
Definition at line 61 of file thread_id.hpp.
Definition at line 50 of file thread_id.hpp.
References thread_id().
Definition at line 54 of file thread_id.hpp.
References thread_id().
Definition at line 45 of file thread_id.hpp.
References thread_id().