Fix sys_cond_destroy (#7931)

Dereference cond count in sys_cond_destroy
This commit is contained in:
Eladash 2020-04-03 12:45:59 +03:00 committed by GitHub
parent 39796141fc
commit 3f559cd86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -56,6 +56,7 @@ error_code sys_cond_destroy(ppu_thread& ppu, u32 cond_id)
return CELL_EBUSY;
}
cond.mutex->cond_count--;
return {};
});

View File

@ -40,11 +40,6 @@ struct lv2_cond final : lv2_obj
{
this->mutex->cond_count++;
}
~lv2_cond()
{
this->mutex->cond_count--;
}
};
class ppu_thread;