summaryrefslogtreecommitdiffstats
path: root/src/common/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/thread.cpp')
-rw-r--r--src/common/thread.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index 33c8437f5..8e5935e6a 100644
--- a/src/common/thread.cpp
+++ b/src/common/thread.cpp
@@ -31,21 +31,21 @@ void SetCurrentThreadPriority(ThreadPriority new_priority) {
auto handle = GetCurrentThread();
int windows_priority = 0;
switch (new_priority) {
- case ThreadPriority::Low:
- windows_priority = THREAD_PRIORITY_BELOW_NORMAL;
- break;
- case ThreadPriority::Normal:
- windows_priority = THREAD_PRIORITY_NORMAL;
- break;
- case ThreadPriority::High:
- windows_priority = THREAD_PRIORITY_ABOVE_NORMAL;
- break;
- case ThreadPriority::VeryHigh:
- windows_priority = THREAD_PRIORITY_HIGHEST;
- break;
- default:
- windows_priority = THREAD_PRIORITY_NORMAL;
- break;
+ case ThreadPriority::Low:
+ windows_priority = THREAD_PRIORITY_BELOW_NORMAL;
+ break;
+ case ThreadPriority::Normal:
+ windows_priority = THREAD_PRIORITY_NORMAL;
+ break;
+ case ThreadPriority::High:
+ windows_priority = THREAD_PRIORITY_ABOVE_NORMAL;
+ break;
+ case ThreadPriority::VeryHigh:
+ windows_priority = THREAD_PRIORITY_HIGHEST;
+ break;
+ default:
+ windows_priority = THREAD_PRIORITY_NORMAL;
+ break;
}
SetThreadPriority(handle, windows_priority);
}