SatDump
2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
thread_priority.h
Go to the documentation of this file.
1
#pragma once
2
7
8
#include <thread>
9
10
namespace
satdump
11
{
12
enum
thread_priority_t
13
{
14
#ifdef _WIN32
15
PRIORITY_LOWEST = -2,
16
PRIORITY_LOW = -1,
17
PRIORITY_NORMAL = 0,
18
PRIORITY_HIGH = 1,
19
PRIORITY_HIGHEST = 2,
20
#else
21
PRIORITY_LOWEST = 1,
22
PRIORITY_LOW = 24,
23
PRIORITY_NORMAL = 50,
24
PRIORITY_HIGH = 74,
25
PRIORITY_HIGHEST = 99,
26
#endif
27
};
28
36
void
setThreadPriority(std::thread &th, thread_priority_t priority);
37
44
void
setLowestThreadPriority(std::thread &th);
45
50
void
setLowestThreadPriority();
51
}
// namespace satdump
src-core
utils
thread_priority.h
Generated by
1.14.0