Pass format to the QGLWidget and use atomic instead of mutex.
This commit is contained in:
parent
b044510fa9
commit
1b1205cf73
2 changed files with 5 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
|||
#include <QMutex>
|
||||
#include <QThread>
|
||||
#include <QGLWidget>
|
||||
#include <atomic>
|
||||
#include "common/common.h"
|
||||
#include "common/emu_window.h"
|
||||
|
||||
|
@ -67,8 +67,7 @@ private:
|
|||
|
||||
bool exec_cpu_step;
|
||||
bool cpu_running;
|
||||
bool stop_run;
|
||||
QMutex mutex;
|
||||
std::atomic<bool> stop_run;
|
||||
|
||||
GRenderWindow* render_window;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue