| 354 | } |
| 355 | |
| 356 | void EmuThread::debugOpen(int reason, uint32_t data) { |
| 357 | std::unique_lock<std::mutex> lock(m_mutexDebug); |
| 358 | m_debug = true; |
| 359 | emit debugCommand(reason, data); |
| 360 | m_cvDebug.wait(lock, [this](){ return !m_debug; }); |
| 361 | } |
| 362 | |
| 363 | void EmuThread::resume() { |
| 364 | { |