From 221e722284decd25eec561ebe29b9d3314b1cae9 Mon Sep 17 00:00:00 2001 From: ayuanx Date: Wed, 16 Jun 2010 14:22:17 +0000 Subject: Linux build fix. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5725 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/Thread.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 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 8ac22356d9..1f04ad1ef6 100644 --- a/Source/Core/Common/Src/Thread.cpp +++ b/Source/Core/Common/Src/Thread.cpp @@ -247,13 +247,18 @@ namespace Common } } } - + // Supporting functions void SleepCurrentThread(int ms) { Sleep(ms); } + void SwitchCurrentThread() + { + SwitchToThread(); + } + typedef struct tagTHREADNAME_INFO { DWORD dwType; // must be 0x1000 @@ -417,13 +422,17 @@ namespace Common thread_init_done++; } - + void SleepCurrentThread(int ms) { usleep(1000 * ms); } - + void SwitchCurrentThread() + { + usleep(1000 * 1); + } + void SetCurrentThreadName(const TCHAR* szThreadName) { char *name = strdup(szThreadName); -- cgit v1.2.3