mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
cellVdec.cpp: use lock_unlock instead of lock_guard
This commit is contained in:
parent
19ded3809f
commit
1800faf0dd
@ -980,10 +980,10 @@ error_code cellVdecClose(ppu_thread& ppu, u32 handle)
|
|||||||
ppu_execute<&sys_interrupt_thread_disestablish>(ppu, tid);
|
ppu_execute<&sys_interrupt_thread_disestablish>(ppu, tid);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::lock_guard lock{vdec->mutex};
|
|
||||||
vdec->seq_state = sequence_state::closed;
|
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
|
// Other thread removed it beforehead
|
||||||
return CELL_VDEC_ERROR_ARG;
|
return CELL_VDEC_ERROR_ARG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user