Fix EmuThread loop by ensuring it exits properly.

Note: There is a pre-existing issue with booting a new game in that it keeps the old EmuThread.
The GL code now supports this but the Core still doesn't.
This commit is contained in:
Sacha 2014-08-25 01:49:34 +10:00
parent a3a70e56ac
commit b044510fa9
2 changed files with 29 additions and 9 deletions

View file

@ -1,3 +1,4 @@
#include <QMutex>
#include <QThread>
#include <QGLWidget>
#include "common/common.h"
@ -66,6 +67,8 @@ private:
bool exec_cpu_step;
bool cpu_running;
bool stop_run;
QMutex mutex;
GRenderWindow* render_window;
@ -105,7 +108,7 @@ public:
void keyPressEvent(QKeyEvent* event);
void keyReleaseEvent(QKeyEvent* event);
private slots:
public slots:
void moveContext();
private: