mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Change "blocking" BlockingLoop::Stop to give up and die after a timeout.
This fixes the global-static fifo object causing infinite hangs in some cases. Notably, failure to initialize a graphics backend would result in BlockingLoop::Prepare being called but never executing Run(), leaving the object in a bad state.
This commit is contained in:
parent
88b442e1a8
commit
ed8f293b4f
2 changed files with 21 additions and 4 deletions
|
@ -144,7 +144,7 @@ void ExitGpuLoop()
|
|||
|
||||
// Terminate GPU thread loop
|
||||
s_emu_running_state.Set();
|
||||
s_gpu_mainloop.Stop(false);
|
||||
s_gpu_mainloop.Stop(s_gpu_mainloop.kNonBlock);
|
||||
}
|
||||
|
||||
void EmulatorState(bool running)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue