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

Declarative profile bundling scheduling intent for a thread. More...

#include <profiles.hpp>

Collaboration diagram for threadschedule::ThreadProfile:
[legend]

Public Attributes

std::string name
SchedulingPolicy policy
ThreadPriority priority
std::optional< ThreadAffinityaffinity

Detailed Description

Declarative profile bundling scheduling intent for a thread.

Value type (copyable). Combines a human-readable name, a scheduling policy, a priority level, and an optional CPU affinity mask into a single object that can be passed to the apply_profile() overloads.

See also
profiles::realtime, profiles::low_latency, profiles::throughput, profiles::background
apply_profile()

Definition at line 56 of file profiles.hpp.

Member Data Documentation

◆ affinity

std::optional<ThreadAffinity> threadschedule::ThreadProfile::affinity

Definition at line 61 of file profiles.hpp.

◆ name

std::string threadschedule::ThreadProfile::name

Definition at line 58 of file profiles.hpp.

◆ policy

SchedulingPolicy threadschedule::ThreadProfile::policy

Definition at line 59 of file profiles.hpp.

◆ priority

ThreadPriority threadschedule::ThreadProfile::priority

Definition at line 60 of file profiles.hpp.


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