MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / stop

Method stop

gui/qt/emuthread.cpp:400–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void EmuThread::stop() {
401 // Need to run events to allow queued slots to be processed during exit
402 QEventLoop eventLoop;
403 connect(this, &QThread::finished, &eventLoop, [&]() { eventLoop.exit(0); });
404 if (!isRunning()) {
405 return;
406 }
407 emu_exit();
408 QTimer::singleShot(500, &eventLoop, [&]() { eventLoop.exit(1); });
409 if (eventLoop.exec()) {
410 terminate();
411 wait(500);
412 }
413}

Callers 3

setStatusIntervalMethod · 0.80
closeEventMethod · 0.80
setRefreshRateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected