SPU: use normal notify() thread function

Using raw_notify() everywhere was overkill.
This commit is contained in:
Nekotekina 2020-10-24 00:55:31 +03:00
parent c479d431a4
commit 2b52b4a749
3 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ inline void try_start(spu_thread& spu)
}).second)
{
spu.state -= cpu_flag::stop;
thread_ctrl::raw_notify(static_cast<named_thread<spu_thread>&>(spu));
thread_ctrl::notify(static_cast<named_thread<spu_thread>&>(spu));
}
};

View File

@ -3646,7 +3646,7 @@ bool spu_thread::stop_and_signal(u32 code)
if (thread.get() != this)
{
thread_ctrl::raw_notify(*thread);
thread_ctrl::notify(*thread);
}
}
}

View File

@ -756,7 +756,7 @@ error_code sys_spu_thread_group_start(ppu_thread& ppu, u32 id)
if (thread && ran_threads--)
{
thread->state -= cpu_flag::stop;
thread_ctrl::raw_notify(*thread);
thread_ctrl::notify(*thread);
}
}
@ -906,7 +906,7 @@ error_code sys_spu_thread_group_resume(ppu_thread& ppu, u32 id)
if (thread)
{
thread->state -= cpu_flag::suspend;
thread_ctrl::raw_notify(*thread);
thread_ctrl::notify(*thread);
}
}