mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12:00
Fix sys_raw_spu_destroy
This commit is contained in:
parent
33d01fd252
commit
9e14e835e7
2 changed files with 11 additions and 8 deletions
|
@ -955,14 +955,15 @@ void spu_int_ctrl_t::set(u64 ints)
|
|||
ints &= mask;
|
||||
|
||||
// notify if at least 1 bit was set
|
||||
if (ints && ~stat.fetch_or(ints) & ints && !tag.expired())
|
||||
if (ints && ~stat.fetch_or(ints) & ints)
|
||||
{
|
||||
reader_lock rlock(id_manager::g_mutex);
|
||||
std::shared_lock rlock(id_manager::g_mutex);
|
||||
|
||||
if (const auto tag_ptr = tag.lock())
|
||||
{
|
||||
if (auto handler = tag_ptr->handler.lock())
|
||||
{
|
||||
rlock.unlock();
|
||||
handler->exec();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue