mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
26 lines
399 B
C++
26 lines
399 B
C++
#include <stdafx.h>
|
|
#include <Utilities/SMutex.h>
|
|
|
|
__forceinline void SM_Sleep()
|
|
{
|
|
Sleep(1);
|
|
}
|
|
|
|
__forceinline DWORD SM_GetCurrentThreadId()
|
|
{
|
|
return GetCurrentThreadId();
|
|
}
|
|
|
|
__forceinline u32 SM_GetCurrentCPUThreadId()
|
|
{
|
|
if (CPUThread* t = GetCurrentCPUThread())
|
|
{
|
|
return t->GetId();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
__forceinline be_t<u32> SM_GetCurrentCPUThreadIdBE()
|
|
{
|
|
return SM_GetCurrentCPUThreadId();
|
|
} |