General: Tune the priority of main emulation threads so they have higher priority than less important helper threads.

This commit is contained in:
Fernando Sahmkow 2020-04-05 09:48:53 -04:00
parent 7b44187fd2
commit 528b19a842
6 changed files with 60 additions and 0 deletions

View file

@ -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