diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-08-10 16:15:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-10 16:15:52 +0200 |
| commit | caa7ff7c2597ab42cbf2b21c4be90ae4a2345326 (patch) | |
| tree | 5b404c3f0f13cb0cd716f9e311089e7989d8d8de /Source/Core/VideoCommon/Fifo.cpp | |
| parent | c6a0e543a520204c1e56033ffa2511252b0dda4a (diff) | |
| parent | dca22e08eb96a401406ef7fa62c59eea1b837f7b (diff) | |
Merge pull request #4093 from leoetlino/flags-and-events
Use Common::Flag and Common::Event when possible
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Fifo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp index 504a274157..8d3df111e4 100644 --- a/Source/Core/VideoCommon/Fifo.cpp +++ b/Source/Core/VideoCommon/Fifo.cpp @@ -36,7 +36,7 @@ static bool s_skip_current_frame = false; static Common::BlockingLoop s_gpu_mainloop; -static std::atomic<bool> s_emu_running_state; +static Common::Flag s_emu_running_state; // Most of this array is unlikely to be faulted in... static u8 s_fifo_aux_data[FIFO_SIZE]; @@ -147,13 +147,13 @@ void ExitGpuLoop() FlushGpu(); // Terminate GPU thread loop - s_emu_running_state.store(true); + s_emu_running_state.Set(); s_gpu_mainloop.Stop(false); } void EmulatorState(bool running) { - s_emu_running_state.store(running); + s_emu_running_state.Set(running); if (running) s_gpu_mainloop.Wakeup(); else @@ -307,7 +307,7 @@ void RunGpuLoop() g_video_backend->PeekMessages(); // Do nothing while paused - if (!s_emu_running_state.load()) + if (!s_emu_running_state.IsSet()) return; if (s_use_deterministic_gpu_thread) |
