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
This commit is contained in:
nakeee 2009-07-18 20:04:18 +00:00
parent 9b0bed1e7f
commit 9e16a5ccd8
1 changed files with 2 additions and 1 deletions

View File

@ -40,6 +40,7 @@
#include <unistd.h>
#ifdef _POSIX_THREADS
#include <pthread.h>
#include <sched.h>
#elif GEKKO
#include <ogc/lwp_threads.h>
#else
@ -183,7 +184,7 @@ inline void YieldCPU()
#ifdef _WIN32
YieldProcessor();
#else
// TODO: Implement for other platforms.
sched_yield();
#endif
}