mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
22 lines
No EOL
405 B
C++
22 lines
No EOL
405 B
C++
#pragma once
|
|
|
|
#include <thread>
|
|
|
|
enum thread_priority_t
|
|
{
|
|
#ifdef _WIN32
|
|
PRIORITY_LOWEST = -2,
|
|
PRIORITY_LOW = -1,
|
|
PRIORITY_NORMAL = 0,
|
|
PRIORITY_HIGH = 1,
|
|
PRIORITY_HIGHEST = 2,
|
|
#else
|
|
PRIORITY_LOWEST = 1,
|
|
PRIORITY_LOW = 24,
|
|
PRIORITY_NORMAL = 50,
|
|
PRIORITY_HIGH = 74,
|
|
PRIORITY_HIGHEST = 99,
|
|
#endif
|
|
};
|
|
|
|
void setThreadPriority(std::thread &th, thread_priority_t priority); |