mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
Add missing lv2_obj::sleep when joining interrupt thread
This commit is contained in:
parent
7e224c5585
commit
3566faabd9
2 changed files with 3 additions and 0 deletions
|
@ -150,6 +150,8 @@ error_code _sys_interrupt_thread_disestablish(ppu_thread& ppu, u32 ih, vm::ptr<u
|
|||
return CELL_ESRCH;
|
||||
}
|
||||
|
||||
lv2_obj::sleep(ppu);
|
||||
|
||||
// Wait for sys_interrupt_thread_eoi() and destroy interrupt thread
|
||||
handler->join();
|
||||
|
||||
|
|
|
@ -1715,6 +1715,7 @@ error_code sys_raw_spu_destroy(ppu_thread& ppu, u32 id)
|
|||
if (auto handler = tag->handler.lock())
|
||||
{
|
||||
// SLEEP
|
||||
lv2_obj::sleep(ppu);
|
||||
handler->join();
|
||||
to_remove.emplace_back(std::move(handler), 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue