mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-05 22:46:56 +00:00
Small changes, some bugs fixed
This commit is contained in:
parent
aeca523a34
commit
cfe154d916
13 changed files with 242 additions and 94 deletions
26
Utilities/SMutex.cpp
Normal file
26
Utilities/SMutex.cpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue