General: Tune the priority of main emulation threads so they have higher priority than less important helper threads.
This commit is contained in:
parent
7b44187fd2
commit
528b19a842
6 changed files with 60 additions and 0 deletions
|
@ -86,6 +86,15 @@ private:
|
|||
std::size_t generation = 0; // Incremented once each time the barrier is used
|
||||
};
|
||||
|
||||
enum class ThreadPriority : u32 {
|
||||
Low = 0,
|
||||
Normal = 1,
|
||||
High = 2,
|
||||
VeryHigh = 3,
|
||||
};
|
||||
|
||||
void SetCurrentThreadPriority(ThreadPriority new_priority);
|
||||
|
||||
void SetCurrentThreadName(const char* name);
|
||||
|
||||
} // namespace Common
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue