not sure about it.. but compiles..
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user