ThreadSchedule 4.1.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::schedule Namespace Reference

Helpers for building scheduling_config values. More...

Functions

constexpr auto background () noexcept -> scheduling_config
 Request background scheduling.
constexpr auto normal () noexcept -> scheduling_config
 Request default scheduling.
constexpr auto interactive () noexcept -> scheduling_config
 Request interactive scheduling.
constexpr auto low_latency () noexcept -> scheduling_config
 Request low-latency scheduling.
constexpr auto realtime_fifo (realtime_priority priority) noexcept -> scheduling_config
 Request realtime FIFO scheduling.
constexpr auto realtime_rr (realtime_priority priority) noexcept -> scheduling_config
 Request realtime round-robin scheduling.
constexpr auto nice (nice_value value) noexcept -> scheduling_config
 Request scheduling via explicit nice value.
constexpr auto priority (priority_level level) noexcept -> scheduling_config
 Request scheduling via portable priority level presets.

Detailed Description

Helpers for building scheduling_config values.

Function Documentation

◆ background()

auto threadschedule::schedule::background ( ) ->scheduling_config
nodiscardconstexprnoexcept

◆ interactive()

auto threadschedule::schedule::interactive ( ) ->scheduling_config
nodiscardconstexprnoexcept

Request interactive scheduling.

Definition at line 116 of file scheduling.hpp.

References threadschedule::interactive, and threadschedule::detail::scheduling_config_access::make().

◆ low_latency()

auto threadschedule::schedule::low_latency ( ) ->scheduling_config
nodiscardconstexprnoexcept

◆ nice()

auto threadschedule::schedule::nice ( nice_value value) ->scheduling_config
nodiscardconstexprnoexcept

Request scheduling via explicit nice value.

Parameters
valueNice value in the supported platform range.

Definition at line 153 of file scheduling.hpp.

References threadschedule::detail::scheduling_config_access::make(), and threadschedule::nice.

Referenced by priority().

◆ normal()

auto threadschedule::schedule::normal ( ) ->scheduling_config
nodiscardconstexprnoexcept

◆ priority()

auto threadschedule::schedule::priority ( priority_level level) ->scheduling_config
nodiscardconstexprnoexcept

Request scheduling via portable priority level presets.

Parameters
levelPortable priority preset mapped to a nice value.

Definition at line 163 of file scheduling.hpp.

References nice().

Referenced by realtime_fifo(), and realtime_rr().

◆ realtime_fifo()

auto threadschedule::schedule::realtime_fifo ( realtime_priority priority) ->scheduling_config
nodiscardconstexprnoexcept

Request realtime FIFO scheduling.

Parameters
priorityValid realtime priority.

Definition at line 133 of file scheduling.hpp.

References threadschedule::detail::scheduling_config_access::make(), priority(), and threadschedule::realtime_fifo.

Referenced by threadschedule::advanced::profiles::realtime().

◆ realtime_rr()

auto threadschedule::schedule::realtime_rr ( realtime_priority priority) ->scheduling_config
nodiscardconstexprnoexcept

Request realtime round-robin scheduling.

Parameters
priorityValid realtime priority.

Definition at line 143 of file scheduling.hpp.

References threadschedule::detail::scheduling_config_access::make(), priority(), and threadschedule::realtime_round_robin.