Provides the parameters required to setup the scheduling of a thread.
More...
#include <Imt.Base.OS.Linux/ThreadSchedulingParams.h>
Provides the parameters required to setup the scheduling of a thread.
◆ ThreadSchedulingParams() [1/2]
Constructor.
- Parameters
-
policy | The scheduling policy |
priority | The thread priority. Corresponds to the realtime priority in case of SchedulingPolicy::FIFO or SchedulingPolicy::ROUND_ROBIN or the nice value in case of SchedulingPolicy::OTHER. See also "man sched 7". |
◆ ThreadSchedulingParams() [2/2]
constexpr imt::base::os::linux::ThreadSchedulingParams::ThreadSchedulingParams |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ getPolicy()
Gets the scheduling policy.
- Returns
- The scheduling policy
◆ getPriority()
constexpr int32_t imt::base::os::linux::ThreadSchedulingParams::getPriority |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Gets the scheduling priority.
- Returns
- the scheduling priority
The documentation for this class was generated from the following file: