summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/Thread.cpp
diff options
context:
space:
mode:
authorsl1nk3.s <sl1nk3.s@gmail.com>2009-07-31 01:55:26 +0000
committersl1nk3.s <sl1nk3.s@gmail.com>2009-07-31 01:55:26 +0000
commit7eed236df960e393348f5223abdc4ef5516c53de (patch)
treea8780b4b2ce07bf8b345852f36310f2b15825fb0 /Source/Core/Common/Src/Thread.cpp
parent96b03effccbf94a9b8ad8399ef34646abc52ec35 (diff)
Fix noWX build, and lower thread priority for screenshots
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3913 8ced0084-cf51-0410-be5f-012b33b47a6e
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__