mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 17:11:23 +00:00
23 lines
332 B
C++
23 lines
332 B
C++
#include "stdafx.h"
|
|
#include "Emu/System.h"
|
|
#include "Emu/CPU/CPUThread.h"
|
|
|
|
#include "Utilities/SMutex.h"
|
|
|
|
bool SM_IsAborted()
|
|
{
|
|
return Emu.IsStopped();
|
|
}
|
|
|
|
void SM_Sleep()
|
|
{
|
|
if (NamedThreadBase* t = GetCurrentNamedThread())
|
|
{
|
|
t->WaitForAnySignal();
|
|
}
|
|
else
|
|
{
|
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
|
}
|
|
}
|