Merge pull request #4032 from EmptyChaos/blockingloop

Fifo: EmulatorState should call AllowSleep instead of Wakeup when pausing (Issue 9692)
This commit is contained in:
Pierre Bourdon 2016-07-19 13:57:12 +02:00 committed by GitHub
commit fb72360283
1 changed files with 4 additions and 1 deletions

View File

@ -154,7 +154,10 @@ void ExitGpuLoop()
void EmulatorState(bool running)
{
s_emu_running_state.store(running);
s_gpu_mainloop.Wakeup();
if (running)
s_gpu_mainloop.Wakeup();
else
s_gpu_mainloop.AllowSleep();
}
void SyncGPU(SyncGPUReason reason, bool may_move_read_ptr)