Fix sys_cond_destroy (#7931)
Dereference cond count in sys_cond_destroy
This commit is contained in:
@@ -56,6 +56,7 @@ error_code sys_cond_destroy(ppu_thread& ppu, u32 cond_id)
|
||||
return CELL_EBUSY;
|
||||
}
|
||||
|
||||
cond.mutex->cond_count--;
|
||||
return {};
|
||||
});
|
||||
|
||||
|
||||
@@ -40,11 +40,6 @@ struct lv2_cond final : lv2_obj
|
||||
{
|
||||
this->mutex->cond_count++;
|
||||
}
|
||||
|
||||
~lv2_cond()
|
||||
{
|
||||
this->mutex->cond_count--;
|
||||
}
|
||||
};
|
||||
|
||||
class ppu_thread;
|
||||
|
||||
Reference in New Issue
Block a user