m_custom_task thread member

This commit is contained in:
Nekotekina 2014-09-24 22:44:26 +04:00
parent a4a4e572a0
commit 05a7466a5a
10 changed files with 113 additions and 53 deletions

View file

@ -187,7 +187,7 @@ u64 PPUThread::FastCall2(u32 addr, u32 rtoc)
LR = Emu.m_ppu_thr_stop;
SetCurrentNamedThread(this);
Task();
CPUThread::Task();
m_status = old_status;
PC = old_PC;
@ -202,4 +202,16 @@ u64 PPUThread::FastCall2(u32 addr, u32 rtoc)
void PPUThread::FastStop()
{
m_status = Stopped;
}
}
void PPUThread::Task()
{
if (m_custom_task)
{
m_custom_task(*this);
}
else
{
CPUThread::Task();
}
}