From ef85b9af45922c6ca364930d40f8aacf1a6dfe64 Mon Sep 17 00:00:00 2001 From: lioncash Date: Mon, 15 Apr 2013 16:28:55 -0400 Subject: 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). --- Source/Core/Common/Src/Thread.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/Common/Src/Thread.cpp') 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 } -- cgit v1.2.3