mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-01 12:08:12 +00:00
Savestates/LV2: Fix race on _sys_lwcond_queue_wait saving
cpu_flag::again modification requires exclusive access.
This commit is contained in:
parent
bc8bf2c329
commit
9b0d33048c
@ -395,8 +395,7 @@ error_code _sys_lwcond_queue_wait(ppu_thread& ppu, u32 lwcond_id, u32 lwmutex_id
|
||||
|
||||
if (is_stopped(state))
|
||||
{
|
||||
reader_lock lock(cond->mutex);
|
||||
reader_lock lock2(mutex->mutex);
|
||||
std::scoped_lock lock(cond->mutex, mutex->mutex);
|
||||
|
||||
bool mutex_sleep = false;
|
||||
bool cond_sleep = false;
|
||||
|
Loading…
Reference in New Issue
Block a user