mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-09 17:25:18 -06:00
not sure about it.. but compiles..
This commit is contained in:
parent
85626024a0
commit
caa797cee3
@ -1,6 +1,7 @@
|
|||||||
#include <stdafx.h>
|
#include <stdafx.h>
|
||||||
#include <Utilities/SMutex.h>
|
#include <Utilities/SMutex.h>
|
||||||
|
|
||||||
|
|
||||||
__forceinline void SM_Sleep()
|
__forceinline void SM_Sleep()
|
||||||
{
|
{
|
||||||
Sleep(1);
|
Sleep(1);
|
||||||
@ -8,7 +9,7 @@ __forceinline void SM_Sleep()
|
|||||||
|
|
||||||
__forceinline size_t SM_GetCurrentThreadId()
|
__forceinline size_t SM_GetCurrentThreadId()
|
||||||
{
|
{
|
||||||
return std::this_thread::get_id().hash();
|
return std::hash<std::thread::id>()(std::this_thread::get_id());
|
||||||
}
|
}
|
||||||
|
|
||||||
__forceinline u32 SM_GetCurrentCPUThreadId()
|
__forceinline u32 SM_GetCurrentCPUThreadId()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user