Implement thread_ctrl::wait_on (see #9208)

This commit is contained in:
Eladash 2021-01-21 17:03:09 +02:00 committed by Ivan
parent f81674232e
commit 12e1be2626
2 changed files with 18 additions and 1 deletions

View file

@ -99,7 +99,7 @@ void _sys_ppu_thread_exit(ppu_thread& ppu, u64 errorcode)
if (old_status == ppu_join_status::joinable)
{
// Wait for termination
ppu.joiner.wait(ppu_join_status::zombie);
thread_ctrl::wait_on(ppu.joiner, ppu_join_status::zombie);
}
ppu_thread_exit(ppu);