diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-06-23 15:27:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-23 15:27:14 +0200 |
commit | a6740224346db3c86944783e2b91dc7180c05537 (patch) | |
tree | af122b8a75d07f25113ef277aa25b2fdca14d05f /src/yuzu/bootmanager.cpp | |
parent | Merge pull request #10842 from german77/native_mifare (diff) | |
parent | general: remove atomic signal and wait (diff) | |
download | yuzu-a6740224346db3c86944783e2b91dc7180c05537.tar yuzu-a6740224346db3c86944783e2b91dc7180c05537.tar.gz yuzu-a6740224346db3c86944783e2b91dc7180c05537.tar.bz2 yuzu-a6740224346db3c86944783e2b91dc7180c05537.tar.lz yuzu-a6740224346db3c86944783e2b91dc7180c05537.tar.xz yuzu-a6740224346db3c86944783e2b91dc7180c05537.tar.zst yuzu-a6740224346db3c86944783e2b91dc7180c05537.zip |
Diffstat (limited to 'src/yuzu/bootmanager.cpp')
-rw-r--r-- | src/yuzu/bootmanager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index cc6b6a25a..bdd1497b5 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -105,14 +105,12 @@ void EmuThread::run() { std::unique_lock lk{m_should_run_mutex}; if (m_should_run) { m_system.Run(); - m_is_running.store(true); - m_is_running.notify_all(); + m_stopped.Reset(); Common::CondvarWait(m_should_run_cv, lk, stop_token, [&] { return !m_should_run; }); } else { m_system.Pause(); - m_is_running.store(false); - m_is_running.notify_all(); + m_stopped.Set(); EmulationPaused(lk); Common::CondvarWait(m_should_run_cv, lk, stop_token, [&] { return m_should_run; }); |