| 88 | } |
| 89 | |
| 90 | std::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 | |
| 112 | bool SwitcherData::PrioFuncsValid() |
| 113 | { |