ThreadSchedule 3.0.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()

constexpr auto threadschedule::scheduling_config::intent ( ) const -> scheduling_intent
inlineconstexprnoexcept

Return the requested scheduling intent.

Definition at line 62 of file scheduling.hpp.

◆ priority_value()

constexpr auto threadschedule::scheduling_config::priority_value ( ) const -> int
inlineconstexprnoexcept

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.

Friends And Related Symbol Documentation

◆ detail::scheduling_config_access

friend struct detail::scheduling_config_access
friend

Definition at line 78 of file scheduling.hpp.


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