mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 03:38:38 +12: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
1 changed files with 1 additions and 2 deletions
|
@ -395,8 +395,7 @@ error_code _sys_lwcond_queue_wait(ppu_thread& ppu, u32 lwcond_id, u32 lwmutex_id
|
||||||
|
|
||||||
if (is_stopped(state))
|
if (is_stopped(state))
|
||||||
{
|
{
|
||||||
reader_lock lock(cond->mutex);
|
std::scoped_lock lock(cond->mutex, mutex->mutex);
|
||||||
reader_lock lock2(mutex->mutex);
|
|
||||||
|
|
||||||
bool mutex_sleep = false;
|
bool mutex_sleep = false;
|
||||||
bool cond_sleep = false;
|
bool cond_sleep = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue