From e102dc2a9472c2ec7338badaaf155a9d0f1b734b Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 26 Feb 2020 20:45:32 +0300 Subject: [PATCH] Add message on exit if some thread are still waiting --- rpcs3/Emu/System.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index a697f8e160..6e924bf3cb 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -1638,9 +1638,10 @@ void Emulator::Stop(bool restart) cpu_thread::stop_all(); g_fxo->reset(); - while (thread_ctrl::get_count()) + while (u32 x = thread_ctrl::get_count()) { - std::this_thread::sleep_for(10ms); + sys_log.fatal("Waiting for %u threads...", x); + std::this_thread::sleep_for(300ms); } sys_log.notice("All threads have been stopped.");