18struct scheduling_config_access;
61 [[nodiscard]]
constexpr auto
71 [[nodiscard]]
constexpr auto
87struct scheduling_config_access
89 [[nodiscard]]
static constexpr auto
92 return scheduling_config(
intent, priority);
101[[nodiscard]]
constexpr auto
108[[nodiscard]]
constexpr auto
115[[nodiscard]]
constexpr auto
122[[nodiscard]]
constexpr auto
132[[nodiscard]]
constexpr auto
142[[nodiscard]]
constexpr auto
152[[nodiscard]]
constexpr auto
162[[nodiscard]]
constexpr auto
Strongly-typed nice value in the POSIX range $[-20, 19]$.
Strongly-typed realtime priority in the range $[1, 99]$.
Immutable scheduling request passed to thread creation/configuration APIs.
friend struct detail::scheduling_config_access
constexpr auto intent() const noexcept -> scheduling_intent
Return the requested scheduling intent.
constexpr auto priority_value() const noexcept -> int
Return the numeric priority payload for the selected intent.
constexpr auto background() noexcept -> scheduling_config
Request background scheduling.
constexpr auto interactive() noexcept -> scheduling_config
Request interactive scheduling.
constexpr auto realtime_rr(realtime_priority priority) noexcept -> scheduling_config
Request realtime round-robin scheduling.
constexpr auto normal() noexcept -> scheduling_config
Request default scheduling.
constexpr auto priority(priority_level level) noexcept -> scheduling_config
Request scheduling via portable priority level presets.
constexpr auto low_latency() noexcept -> scheduling_config
Request low-latency scheduling.
priority_level
Portable non-realtime priority levels.
scheduling_intent
Portable scheduling intents that map to platform-specific behavior.
@ nice
Apply an explicit nice-level priority value.
@ low_latency
Favor low-latency execution where possible.
@ background
Prefer throughput and lower CPU contention over responsiveness.
@ realtime_fifo
Request POSIX FIFO realtime scheduling.
@ realtime_round_robin
Request POSIX round-robin realtime scheduling.
@ interactive
Favor responsiveness for user-facing work.
@ normal
Default scheduler behavior with balanced responsiveness.
Validated POSIX nice priority wrapper.
Validated realtime priority wrapper.