rCriticalSection & rSemaphore removed

SC_Semaphore errors fixed
Room for interrupt threads
This commit is contained in:
Nekotekina 2014-06-22 14:59:28 +04:00
parent 2fad8039f5
commit 30b8e51234
15 changed files with 84 additions and 148 deletions

View file

@ -85,13 +85,13 @@ void CPUThread::SetName(const std::string& name)
void CPUThread::Wait(bool wait)
{
rCriticalSectionLocker lock(m_cs_sync);
std::lock_guard<std::mutex> lock(m_cs_sync);
m_sync_wait = wait;
}
void CPUThread::Wait(const CPUThread& thr)
{
rCriticalSectionLocker lock(m_cs_sync);
std::lock_guard<std::mutex> lock(m_cs_sync);
m_wait_thread_id = thr.GetId();
m_sync_wait = true;
}