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