sys_interrupt: weak_ptr -> shared_ptr

This commit is contained in:
Eladash 2021-05-14 17:55:07 +03:00 committed by Ivan
parent 33580e0aa1
commit c681395fb2
6 changed files with 20 additions and 14 deletions

View file

@ -1160,9 +1160,9 @@ void spu_int_ctrl_t::set(u64 ints)
{
std::shared_lock rlock(id_manager::g_mutex);
if (const auto tag_ptr = tag.lock())
if (tag && tag->exists)
{
if (auto handler = tag_ptr->handler.lock())
if (auto handler = tag->handler; handler && handler->exists)
{
rlock.unlock();
handler->exec();