summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-01-18 00:34:58 +0100
committerLioncash <mathew1800@gmail.com>2018-01-18 00:35:02 +0100
commite50188374f94b4ea4039ca628313b0e7c40de4d6 (patch)
tree10c13314223270c67e1336fc73d96c6254edc484
parentMerge pull request #73 from N00byKing/3093 (diff)
downloadyuzu-e50188374f94b4ea4039ca628313b0e7c40de4d6.tar
yuzu-e50188374f94b4ea4039ca628313b0e7c40de4d6.tar.gz
yuzu-e50188374f94b4ea4039ca628313b0e7c40de4d6.tar.bz2
yuzu-e50188374f94b4ea4039ca628313b0e7c40de4d6.tar.lz
yuzu-e50188374f94b4ea4039ca628313b0e7c40de4d6.tar.xz
yuzu-e50188374f94b4ea4039ca628313b0e7c40de4d6.tar.zst
yuzu-e50188374f94b4ea4039ca628313b0e7c40de4d6.zip
-rw-r--r--src/yuzu/bootmanager.cpp3
-rw-r--r--src/yuzu/bootmanager.h10
2 files changed, 6 insertions, 7 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 61d678c9b..b9dc4943a 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -15,8 +15,7 @@
#include "input_common/motion_emu.h"
#include "yuzu/bootmanager.h"
-EmuThread::EmuThread(GRenderWindow* render_window)
- : exec_step(false), running(false), stop_run(false), render_window(render_window) {}
+EmuThread::EmuThread(GRenderWindow* render_window) : render_window(render_window) {}
void EmuThread::run() {
render_window->MakeCurrent();
diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.h
index 6974edcbb..130bc613b 100644
--- a/src/yuzu/bootmanager.h
+++ b/src/yuzu/bootmanager.h
@@ -58,7 +58,7 @@ public:
* @return True if the emulation thread is running, otherwise false
* @note This function is thread-safe
*/
- bool IsRunning() {
+ bool IsRunning() const {
return running;
}
@@ -68,12 +68,12 @@ public:
void RequestStop() {
stop_run = true;
SetRunning(false);
- };
+ }
private:
- bool exec_step;
- bool running;
- std::atomic<bool> stop_run;
+ bool exec_step = false;
+ bool running = false;
+ std::atomic<bool> stop_run{false};
std::mutex running_mutex;
std::condition_variable running_cv;