From 9e16a5ccd8c9a263ad0688d5d0cf10e86570987a Mon Sep 17 00:00:00 2001 From: nakeee Date: Sat, 18 Jul 2009 20:04:18 +0000 Subject: [PATCH] Call sched_yield for yieldcpu function on linux/osx please test git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3837 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/Thread.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/Thread.h b/Source/Core/Common/Src/Thread.h index 052f3ce02a..ee678efc6a 100644 --- a/Source/Core/Common/Src/Thread.h +++ b/Source/Core/Common/Src/Thread.h @@ -40,6 +40,7 @@ #include #ifdef _POSIX_THREADS #include +#include #elif GEKKO #include #else @@ -183,7 +184,7 @@ inline void YieldCPU() #ifdef _WIN32 YieldProcessor(); #else - // TODO: Implement for other platforms. + sched_yield(); #endif }