* Stop emulation and wait for the thread to finish.
*
* @details: This function will wait a second for the thread to finish; if it hasn't finished until then, we'll terminate() it and wait another second, hoping that it will be terminated by then.
* @note: This function is thread-safe.
*/
voidStop();
private:
friendclassGRenderWindow;
EmuThread(GRenderWindow*render_window);
charfilename[MAX_PATH];
boolexec_cpu_step;
boolcpu_running;
GRenderWindow*render_window;
signals:
/**
* Emitted when CPU when we've finished processing a single Gekko instruction
*
* @warning This will only be emitted when the CPU is not running (SetCpuRunning(false))
* @warning When connecting to this signal from other threads, make sure to specify either Qt::QueuedConnection (invoke slot within the destination object's message thread) or even Qt::BlockingQueuedConnection (additionally block source thread until slot returns)