MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / GetThreadPrioMapping

Function GetThreadPrioMapping

lib/utils/priority-helper.cpp:90–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90std::vector<ThreadPrio> GetThreadPrioMapping()
91{
92 return {
93 {"Idle",
94 "scheduled only when no other threads are running (lowest CPU load)",
95 QThread::IdlePriority},
96 {"Lowest", "scheduled less often than LowPriority",
97 QThread::LowestPriority},
98 {"Low", "scheduled less often than NormalPriority",
99 QThread::LowPriority},
100 {"Normal", "the default priority of the operating system",
101 QThread::NormalPriority},
102 {"High", "scheduled more often than NormalPriority",
103 QThread::HighPriority},
104 {"Highest", "scheduled more often than HighPriority",
105 QThread::HighestPriority},
106 {"Time critical",
107 "scheduled as often as possible (highest CPU load)",
108 QThread::TimeCriticalPriority},
109 };
110}
111
112bool SwitcherData::PrioFuncsValid()
113{

Callers 1

SwitcherDataClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected