Savestates: Fix deadlock on savestate load

This commit is contained in:
Eladash 2023-03-11 11:51:30 +02:00 committed by Ivan
parent a41d2e43fd
commit 0beda6fa89
3 changed files with 12 additions and 3 deletions

View file

@ -2249,7 +2249,7 @@ void Emulator::FinalizeRunRequest()
idm::select<named_thread<spu_thread>>(on_select);
lv2_obj::awake_all();
lv2_obj::make_scheduler_ready();
m_state.compare_and_swap_test(system_state::starting, system_state::running);
}