summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/Thread.cpp
diff options
context:
space:
mode:
authorlioncash <mathew1900@hotmail.com>2013-04-15 16:28:55 -0400
committerlioncash <mathew1900@hotmail.com>2013-04-15 16:28:55 -0400
commitef85b9af45922c6ca364930d40f8aacf1a6dfe64 (patch)
treea2ff7ad4bab5c121a0783580e57ffb1dc5628eef /Source/Core/Common/Src/Thread.cpp
parenta44fb7bdd056b727f84f6a14617af268e82f90de (diff)
Update the license file text (change SVN to Git) in all projects except Core since I was told a merge was happening soon. So for the sake of the merge going smoothly, I'll fix that when I remove the tab/space mismatches from the Core project.
Also, some tab/space mismatches removed from VideoOGL, and some places I missed in VideoDX[number] projects. Now, the Core is literally the only project with tab/space mismatches (on a large scale).
Diffstat (limited to 'Source/Core/Common/Src/Thread.cpp')
-rw-r--r--Source/Core/Common/Src/Thread.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/Common/Src/Thread.cpp b/Source/Core/Common/Src/Thread.cpp
index 3e8440b74f..1a3519c6ec 100644
--- a/Source/Core/Common/Src/Thread.cpp
+++ b/Source/Core/Common/Src/Thread.cpp
@@ -12,7 +12,7 @@
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
-// Official SVN repository and contact information can be found at
+// Official Git repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
#include "Thread.h"
@@ -101,18 +101,18 @@ void SetCurrentThreadName(const char* szThreadName)
#else // !WIN32, so must be POSIX threads
void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask)
-{
+{
#ifdef __APPLE__
thread_policy_set(pthread_mach_thread_np(thread),
THREAD_AFFINITY_POLICY, (integer_t *)&mask, 1);
#elif (defined __linux__ || defined BSD4_4) && !(defined ANDROID)
cpu_set_t cpu_set;
CPU_ZERO(&cpu_set);
-
+
for (int i = 0; i != sizeof(mask) * 8; ++i)
if ((mask >> i) & 1)
CPU_SET(i, &cpu_set);
-
+
pthread_setaffinity_np(thread, sizeof(cpu_set), &cpu_set);
#endif
}