summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/Thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src/Thread.cpp')
-rw-r--r--Source/Core/Common/Src/Thread.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/Thread.cpp b/Source/Core/Common/Src/Thread.cpp
index a9f13c5943..aa9f5c4a2e 100644
--- a/Source/Core/Common/Src/Thread.cpp
+++ b/Source/Core/Common/Src/Thread.cpp
@@ -95,6 +95,11 @@ void Thread::SetAffinity(int mask)
SetThreadAffinityMask(m_hThread, mask);
}
+void Thread::SetPriority(int priority)
+{
+ SetThreadPriority(m_hThread, priority);
+}
+
void Thread::SetCurrentThreadAffinity(int mask)
{
SetThreadAffinityMask(GetCurrentThread(), mask);
@@ -308,7 +313,6 @@ void Thread::SetAffinity(int mask)
#endif
}
-
void Thread::SetCurrentThreadAffinity(int mask)
{
#ifdef __linux__