mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-11 13:42:39 +00:00
Linux build fix.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5725 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
762ce28977
commit
221e722284
3 changed files with 24 additions and 29 deletions
Source/Core/Common/Src
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue