mirror of https://github.com/RPCS3/rpcs3.git
Fix sys_cond_destroy (#7931)
Dereference cond count in sys_cond_destroy
This commit is contained in:
parent
39796141fc
commit
3f559cd86e
|
@ -56,6 +56,7 @@ error_code sys_cond_destroy(ppu_thread& ppu, u32 cond_id)
|
||||||
return CELL_EBUSY;
|
return CELL_EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cond.mutex->cond_count--;
|
||||||
return {};
|
return {};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -40,11 +40,6 @@ struct lv2_cond final : lv2_obj
|
||||||
{
|
{
|
||||||
this->mutex->cond_count++;
|
this->mutex->cond_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
~lv2_cond()
|
|
||||||
{
|
|
||||||
this->mutex->cond_count--;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class ppu_thread;
|
class ppu_thread;
|
||||||
|
|
Loading…
Reference in New Issue