mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-13 07:14:49 +00:00
Fix stop count incremention in Emu.Stop (#9843)
Until emulation is completely stopped, further CallAfter callbacks may be issued with incorrect stop count memorized.
This commit is contained in:
parent
e940632d93
commit
c13039396c
@ -1873,9 +1873,6 @@ void Emulator::Stop(bool restart)
|
||||
|
||||
sys_log.notice("Stopping emulator...");
|
||||
|
||||
m_stop_ctr++;
|
||||
m_stop_ctr.notify_all();
|
||||
|
||||
GetCallbacks().on_stop();
|
||||
|
||||
if (auto rsx = g_fxo->get<rsx::thread>())
|
||||
@ -1923,6 +1920,9 @@ void Emulator::Stop(bool restart)
|
||||
|
||||
sys_log.notice("Atomic wait hashtable stats: [in_use=%u, used=%u, max_collision_weight=%u, total_collisions=%u]", aw_refs, aw_used, aw_colm, aw_colc);
|
||||
|
||||
m_stop_ctr++;
|
||||
m_stop_ctr.notify_all();
|
||||
|
||||
if (restart)
|
||||
{
|
||||
// Reload with prior configs.
|
||||
|
Loading…
x
Reference in New Issue
Block a user