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

Thread priority wrapper with validation. More...

#include <scheduler_policy.hpp>

Public Member Functions

constexpr ThreadPriority (int priority=0)
constexpr auto value () const noexcept -> int
constexpr auto is_valid () const noexcept -> bool
auto operator== (ThreadPriority const &other) const -> bool
auto operator!= (ThreadPriority const &other) const -> bool
auto operator< (ThreadPriority const &other) const -> bool
auto operator<= (ThreadPriority const &other) const -> bool
auto operator> (ThreadPriority const &other) const -> bool
auto operator>= (ThreadPriority const &other) const -> bool
auto to_string () const -> std::string

Static Public Member Functions

static constexpr auto lowest () -> ThreadPriority
static constexpr auto normal () -> ThreadPriority
static constexpr auto highest () -> ThreadPriority

Detailed Description

Thread priority wrapper with validation.

Definition at line 50 of file scheduler_policy.hpp.

Constructor & Destructor Documentation

◆ ThreadPriority()

threadschedule::ThreadPriority::ThreadPriority ( int priority = 0)
inlineexplicitconstexpr

Definition at line 53 of file scheduler_policy.hpp.

Member Function Documentation

◆ highest()

constexpr auto threadschedule::ThreadPriority::highest ( ) -> ThreadPriority
inlinestaticconstexpr

Definition at line 75 of file scheduler_policy.hpp.

◆ is_valid()

auto threadschedule::ThreadPriority::is_valid ( ) const -> bool
inlinenodiscardconstexprnoexcept

Definition at line 61 of file scheduler_policy.hpp.

◆ lowest()

constexpr auto threadschedule::ThreadPriority::lowest ( ) -> ThreadPriority
inlinestaticconstexpr

Definition at line 67 of file scheduler_policy.hpp.

◆ normal()

constexpr auto threadschedule::ThreadPriority::normal ( ) -> ThreadPriority
inlinestaticconstexpr

Definition at line 71 of file scheduler_policy.hpp.

◆ operator!=()

auto threadschedule::ThreadPriority::operator!= ( ThreadPriority const & other) const -> bool
inlinenodiscard

Definition at line 85 of file scheduler_policy.hpp.

◆ operator<()

auto threadschedule::ThreadPriority::operator< ( ThreadPriority const & other) const -> bool
inlinenodiscard

Definition at line 89 of file scheduler_policy.hpp.

◆ operator<=()

auto threadschedule::ThreadPriority::operator<= ( ThreadPriority const & other) const -> bool
inlinenodiscard

Definition at line 93 of file scheduler_policy.hpp.

◆ operator==()

auto threadschedule::ThreadPriority::operator== ( ThreadPriority const & other) const -> bool
inlinenodiscard

Definition at line 81 of file scheduler_policy.hpp.

◆ operator>()

auto threadschedule::ThreadPriority::operator> ( ThreadPriority const & other) const -> bool
inlinenodiscard

Definition at line 97 of file scheduler_policy.hpp.

◆ operator>=()

auto threadschedule::ThreadPriority::operator>= ( ThreadPriority const & other) const -> bool
inlinenodiscard

Definition at line 101 of file scheduler_policy.hpp.

◆ to_string()

auto threadschedule::ThreadPriority::to_string ( ) const -> std::string
inlinenodiscard

Definition at line 106 of file scheduler_policy.hpp.

◆ value()

auto threadschedule::ThreadPriority::value ( ) const -> int
inlinenodiscardconstexprnoexcept

Definition at line 57 of file scheduler_policy.hpp.


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