| 53 | } |
| 54 | |
| 55 | EmuThread::EmuThread(QObject *parent) : QThread{parent}, write{CONSOLE_BUFFER_SIZE}, |
| 56 | m_speed{100}, m_throttle{true}, |
| 57 | m_lastTime{std::chrono::steady_clock::now()}, |
| 58 | m_debug{false} { |
| 59 | assert(emu == nullptr); |
| 60 | emu = this; |
| 61 | std::fill(m_perfArray, m_perfArray + PerfArraySize, m_lastTime); |
| 62 | } |
| 63 | |
| 64 | void EmuThread::run() { |
| 65 | while (!(cpu_check_signals() & CPU_SIGNAL_EXIT)) { |
nothing calls this directly
no outgoing calls
no test coverage detected