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

Immutable scheduling request passed to thread creation/configuration APIs. More...

#include <scheduling.hpp>

Public Member Functions

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.

Friends

struct detail::scheduling_config_access

Detailed Description

Immutable scheduling request passed to thread creation/configuration APIs.

Definition at line 55 of file scheduling.hpp.

Member Function Documentation

◆ intent()

auto threadschedule::scheduling_config::intent ( ) const->scheduling_intent
inlinenodiscardconstexprnoexcept

Return the requested scheduling intent.

Definition at line 62 of file scheduling.hpp.

Referenced by detail::scheduling_config_access.

◆ priority_value()

auto threadschedule::scheduling_config::priority_value ( ) const->int
inlinenodiscardconstexprnoexcept

Return the numeric priority payload for the selected intent.

Returns
Realtime priority or nice value depending on intent().

Definition at line 72 of file scheduling.hpp.

◆ detail::scheduling_config_access

friend struct detail::scheduling_config_access
friend

Definition at line 78 of file scheduling.hpp.

References intent().


The documentation for this class was generated from the following file: