summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-08-28 04:04:04 +0200
committerCharles Lombardo <clombardo169@gmail.com>2023-08-30 21:19:23 +0200
commit5445e974e0cf164c3295d9eaa658b9d62fe42019 (patch)
tree1beffa53dc3adc39355e6ea2349e6d908b4f05bc
parentandroid: Game loading/shutting down indicators (diff)
downloadyuzu-5445e974e0cf164c3295d9eaa658b9d62fe42019.tar
yuzu-5445e974e0cf164c3295d9eaa658b9d62fe42019.tar.gz
yuzu-5445e974e0cf164c3295d9eaa658b9d62fe42019.tar.bz2
yuzu-5445e974e0cf164c3295d9eaa658b9d62fe42019.tar.lz
yuzu-5445e974e0cf164c3295d9eaa658b9d62fe42019.tar.xz
yuzu-5445e974e0cf164c3295d9eaa658b9d62fe42019.tar.zst
yuzu-5445e974e0cf164c3295d9eaa658b9d62fe42019.zip
-rw-r--r--src/android/app/src/main/jni/native.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp
index 83e88010f..0f2a6d9e4 100644
--- a/src/android/app/src/main/jni/native.cpp
+++ b/src/android/app/src/main/jni/native.cpp
@@ -203,12 +203,10 @@ public:
}
bool IsRunning() const {
- std::scoped_lock lock(m_mutex);
return m_is_running;
}
bool IsPaused() const {
- std::scoped_lock lock(m_mutex);
return m_is_running && m_is_paused;
}
@@ -544,8 +542,8 @@ private:
Core::PerfStatsResults m_perf_stats{};
std::shared_ptr<FileSys::VfsFilesystem> m_vfs;
Core::SystemResultStatus m_load_result{Core::SystemResultStatus::ErrorNotInitialized};
- bool m_is_running{};
- bool m_is_paused{};
+ std::atomic<bool> m_is_running = false;
+ std::atomic<bool> m_is_paused = false;
SoftwareKeyboard::AndroidKeyboard* m_software_keyboard{};
std::unique_ptr<Service::Account::ProfileManager> m_profile_manager;
std::unique_ptr<FileSys::ManualContentProvider> m_manual_provider;