Merge pull request #4032 from EmptyChaos/blockingloop
Fifo: EmulatorState should call AllowSleep instead of Wakeup when pausing (Issue 9692)
This commit is contained in:
commit
fb72360283
|
@ -154,7 +154,10 @@ void ExitGpuLoop()
|
||||||
void EmulatorState(bool running)
|
void EmulatorState(bool running)
|
||||||
{
|
{
|
||||||
s_emu_running_state.store(running);
|
s_emu_running_state.store(running);
|
||||||
|
if (running)
|
||||||
s_gpu_mainloop.Wakeup();
|
s_gpu_mainloop.Wakeup();
|
||||||
|
else
|
||||||
|
s_gpu_mainloop.AllowSleep();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SyncGPU(SyncGPUReason reason, bool may_move_read_ptr)
|
void SyncGPU(SyncGPUReason reason, bool may_move_read_ptr)
|
||||||
|
|
Loading…
Reference in New Issue