SMutex partially replaced with std::mutex

SPURecompiler.h: SETcc bug fixed
This commit is contained in:
Nekotekina 2014-06-20 15:00:36 +04:00
parent 237e7989b4
commit 90b9861043
21 changed files with 114 additions and 106 deletions

View file

@ -8,7 +8,14 @@
__forceinline void SM_Sleep()
{
Sleep(1);
if (NamedThreadBase* t = GetCurrentNamedThread())
{
t->WaitForAnySignal();
}
else
{
Sleep(1);
}
}
thread_local size_t g_this_thread_id = 0;