|
ThreadSchedule 3.0.0
Modern C++ thread management library
|
Strongly-typed realtime priority in the range $[1, 99]$. More...
#include <realtime_priority.hpp>
Public Member Functions | |
| constexpr | realtime_priority (int value) |
| Construct and validate a realtime priority. | |
| constexpr auto | value () const noexcept -> int |
| Return the wrapped realtime priority value. | |
Static Public Member Functions | |
| static auto | create (int value) noexcept -> result< realtime_priority > |
| Construct a realtime priority without exceptions. | |
Static Public Attributes | |
| static constexpr int | minimum = 1 |
| Lowest accepted realtime priority value. | |
| static constexpr int | maximum = 99 |
| Highest accepted realtime priority value. | |
Friends | |
| constexpr auto | operator== (realtime_priority lhs, realtime_priority rhs) noexcept -> bool |
| constexpr auto | operator!= (realtime_priority lhs, realtime_priority rhs) noexcept -> bool |
Strongly-typed realtime priority in the range $[1, 99]$.
Definition at line 18 of file realtime_priority.hpp.
|
inlineexplicitconstexpr |
Construct and validate a realtime priority.
| std::invalid_argument | if value is out of range. |
Definition at line 31 of file realtime_priority.hpp.
|
inlinestaticnoexcept |
Construct a realtime priority without exceptions.
errc::invalid_argument. Definition at line 39 of file realtime_priority.hpp.
|
inlineconstexprnoexcept |
Return the wrapped realtime priority value.
Definition at line 48 of file realtime_priority.hpp.
Referenced by create().
|
friend |
Definition at line 59 of file realtime_priority.hpp.
|
friend |
Definition at line 54 of file realtime_priority.hpp.
|
staticconstexpr |
Highest accepted realtime priority value.
Definition at line 24 of file realtime_priority.hpp.
Referenced by create().
|
staticconstexpr |
Lowest accepted realtime priority value.
Definition at line 22 of file realtime_priority.hpp.