|
CeresEngine 0.2.0
A game development framework
|
Determines the priority to which an executor should schedule its tasks. More...
#include <CeresEngine/Foundation/Threading/ExecutionContext.hpp>
Public Types | |
| using | polymorphic_query_result_type = ExecutorPriority |
Public Member Functions | |
| constexpr | ExecutorPriority () noexcept=default |
| constexpr | ExecutorPriority (const Int32 raw) noexcept |
Static Public Member Functions | |
| static constexpr ExecutorPriority | interpolate (const double priority) |
Creates a new priority from an a priority range from 0.0 to 1.0, where 0.0 is the lowest priority possible and 1.0 is the highest priority possible. | |
| static constexpr ExecutorPriority | interpolate (const double priority, const ExecutorPriority &lowest, const ExecutorPriority &highest) |
Creates a new priority from an a priority range from 0.0 to 1.0, where 0.0 is the lowest priority and 1.0 is the highest priority. | |
Public Attributes | |
| Int32 | raw = 0 |
| The raw priority value. | |
Static Public Attributes | |
| static const ExecutorPriority | Lowest {std::numeric_limits<Int32>::lowest()} |
| The lowest possible executor priority value,. | |
| static const ExecutorPriority | Low {std::numeric_limits<Int32>::lowest() / 2} |
| The default value for low-priority tasks. | |
| static const ExecutorPriority | Normal {0} |
| The default value for regular tasks. | |
| static const ExecutorPriority | High {std::numeric_limits<Int32>::max() / 2} |
| The default value for high-priority tasks. | |
| static const ExecutorPriority | Highest {std::numeric_limits<Int32>::max()} |
| The highest possible executor priority value,. | |
| template<typename T > | |
| static constexpr bool | is_applicable_property_v = asio::execution::is_executor<T>::value |
| static constexpr bool | is_requirable = true |
| static constexpr bool | is_preferable = true |
Determines the priority to which an executor should schedule its tasks.
|
constexprdefaultnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlinestaticconstexpr |
Creates a new priority from an a priority range from 0.0 to 1.0, where 0.0 is the lowest priority possible and 1.0 is the highest priority possible.
Values in between are interpolated between those 2.
|
inlinestaticconstexpr |
Creates a new priority from an a priority range from 0.0 to 1.0, where 0.0 is the lowest priority and 1.0 is the highest priority.
Values in between are interpolated between those 2.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
inlinestaticconstexpr |
The default value for high-priority tasks.
|
inlinestaticconstexpr |
The highest possible executor priority value,.
|
staticconstexpr |
|
inlinestaticconstexpr |
The default value for low-priority tasks.
|
inlinestaticconstexpr |
The lowest possible executor priority value,.
|
inlinestaticconstexpr |
The default value for regular tasks.
| Int32 CeresEngine::ExecutorPriority::raw = 0 |
The raw priority value.