This commit is contained in:
Nekotekina 2020-03-01 22:40:48 +03:00
parent 6ee9153329
commit c7fa4e2375

View File

@ -22,7 +22,7 @@ struct ppu_thread_cleaner
{
if (u32 id = old_id.exchange(new_id)) [[likely]]
{
if (!idm::remove<named_thread<ppu_thread>>(old_id)) [[unlikely]]
if (!idm::remove<named_thread<ppu_thread>>(id)) [[unlikely]]
{
sys_ppu_thread.fatal("Failed to remove detached thread 0x%x", id);
}