mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
sys_interrupt: weak_ptr -> shared_ptr
This commit is contained in:
parent
33580e0aa1
commit
c681395fb2
6 changed files with 20 additions and 14 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue