Linux compile fix,

added SLEEP to common, please use this macro if really don't want to use the sleep in thread


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2390 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-02-23 09:54:12 +00:00
parent 4beff606d7
commit d43c22b8dc
2 changed files with 8 additions and 1 deletions

View File

@ -161,6 +161,7 @@ inline u32 _rotr(u32 x, int shift) {
#define LONG int
#ifndef __forceinline
#define __forceinline inline
#endif
@ -384,6 +385,12 @@ namespace
///////////////////////////////////////
#ifdef _WIN32
#define SLEEP(x) Sleep(x)
#else
#define SLEEP(x) usleep(x*1000)
#endif
#endif // _COMMON_H

View File

@ -531,7 +531,7 @@ void CFrame::DoStop()
*/
#ifndef SETUP_TIMER_WAITING
if (bRenderToMain)
while(Core::GetState() != Core::CORE_UNINITIALIZED) Sleep(10);
while(Core::GetState() != Core::CORE_UNINITIALIZED) SLEEP(10);
#endif
UpdateGUI();