mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-26 01:14:04 +00:00
bootmanager: In-class initialize EmuThread's boolean member variables
Trims down the initializer list a little.
This commit is contained in:
parent
9699194b54
commit
c06f7978ac
2 changed files with 4 additions and 5 deletions
|
@ -20,8 +20,7 @@
|
|||
#include "input_common/motion_emu.h"
|
||||
#include "network/network.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();
|
||||
|
|
|
@ -71,9 +71,9 @@ public:
|
|||
};
|
||||
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue