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

Functions

auto realtime () -> ThreadProfile
 Highest priority profile. Uses FIFO on Linux (if permitted), falls back to OTHER on Windows.
auto low_latency () -> ThreadProfile
 Low-latency interactive profile using RR scheduling.
auto throughput () -> ThreadProfile
 Throughput-oriented profile favoring batch scheduling.
auto background () -> ThreadProfile
 Background profile for very low priority work.

Function Documentation

◆ background()

auto threadschedule::profiles::background ( ) -> ThreadProfile
inline

Background profile for very low priority work.

Definition at line 100 of file profiles.hpp.

References threadschedule::IDLE, and threadschedule::ThreadPriority::lowest().

◆ low_latency()

auto threadschedule::profiles::low_latency ( ) -> ThreadProfile
inline

Low-latency interactive profile using RR scheduling.

Definition at line 84 of file profiles.hpp.

References threadschedule::RR.

◆ realtime()

auto threadschedule::profiles::realtime ( ) -> ThreadProfile
inline

Highest priority profile. Uses FIFO on Linux (if permitted), falls back to OTHER on Windows.

Definition at line 70 of file profiles.hpp.

References threadschedule::FIFO, threadschedule::ThreadPriority::highest(), and threadschedule::OTHER.

◆ throughput()

auto threadschedule::profiles::throughput ( ) -> ThreadProfile
inline

Throughput-oriented profile favoring batch scheduling.

Definition at line 92 of file profiles.hpp.

References threadschedule::BATCH, and threadschedule::ThreadPriority::normal().