mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-18 02:11:28 +00:00
30b8e51234
SC_Semaphore errors fixed Room for interrupt threads
41 lines
499 B
C++
41 lines
499 B
C++
#include "stdafx.h"
|
|
|
|
rTimer::rTimer()
|
|
{
|
|
handle = reinterpret_cast<void*>(new wxTimer());
|
|
}
|
|
|
|
rTimer::~rTimer()
|
|
{
|
|
delete reinterpret_cast<wxTimer*>(handle);
|
|
}
|
|
|
|
void rTimer::Start()
|
|
{
|
|
reinterpret_cast<wxTimer*>(handle)->Start();
|
|
}
|
|
|
|
void rTimer::Stop()
|
|
{
|
|
reinterpret_cast<wxTimer*>(handle)->Stop();
|
|
}
|
|
|
|
void rSleep(u32 time)
|
|
{
|
|
wxSleep(time);
|
|
}
|
|
|
|
void rMicroSleep(u64 time)
|
|
{
|
|
wxMicroSleep(time);
|
|
}
|
|
|
|
bool rThread::IsMain()
|
|
{
|
|
return wxThread::IsMain();
|
|
}
|
|
|
|
void rYieldIfNeeded()
|
|
{
|
|
wxYieldIfNeeded();
|
|
} |