Minor idm::remove_verify usage optimization in sys_interrupty.cpp

Avoid copying a shared ptr, create a weak ptr instead.
This commit is contained in:
Eladash 2020-03-14 19:24:45 +02:00
parent 74c05ec5ee
commit 4e6934c9dc

View file

@ -39,7 +39,7 @@ void lv2_int_serv::join()
thread_ctrl::notify(*thread);
(*thread)();
idm::remove_verify<named_thread<ppu_thread>>(thread->id, thread);
idm::remove_verify<named_thread<ppu_thread>>(thread->id, static_cast<std::weak_ptr<named_thread<ppu_thread>>>(thread));
}
error_code sys_interrupt_tag_destroy(ppu_thread& ppu, u32 intrtag)