prx_mem memory leak fixed

CPUThread::ExecAsCallback (experimental)
This commit is contained in:
Nekotekina 2014-03-04 23:18:17 +04:00
parent b32a8e2e28
commit 384536ba4f
11 changed files with 133 additions and 39 deletions

View file

@ -145,15 +145,19 @@ public:
{
if (!tid)
{
ConLog.Error("SMutexLockerBase: thread id == 0");
Emu.Pause();
if (!Emu.IsStopped())
{
ConLog.Error("SMutexLockerBase: thread id == 0");
Emu.Pause();
}
return;
}
sm.lock(tid);
}
~SMutexLockerBase()
{
sm.unlock(tid);
if (tid) sm.unlock(tid);
}
};