mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Add message on exit if some thread are still waiting
This commit is contained in:
parent
5e59f18720
commit
e102dc2a94
1 changed files with 3 additions and 2 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue