1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 20:22:30 +01:00

cellVdec.cpp: use lock_unlock instead of lock_guard

This commit is contained in:
oltolm 2023-02-23 21:30:01 +01:00 committed by kd-11
parent 19ded3809f
commit 1800faf0dd

View File

@ -980,10 +980,10 @@ error_code cellVdecClose(ppu_thread& ppu, u32 handle)
ppu_execute<&sys_interrupt_thread_disestablish>(ppu, tid);
}
std::lock_guard lock{vdec->mutex};
vdec->seq_state = sequence_state::closed;
vdec->mutex.lock_unlock();
if (!idm::remove_verify<vdec_context>(handle, vdec))
if (!idm::remove_verify<vdec_context>(handle, std::move(vdec)))
{
// Other thread removed it beforehead
return CELL_VDEC_ERROR_ARG;