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

Method progressHandler

gui/qt/emuthread.cpp:293–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293bool EmuThread::progressHandler(void *context, int value, int total) {
294 EmuThread* emuThread = reinterpret_cast<EmuThread *>(context);
295 if (value == 1 && total == 1) {
296 emuThread->setThrottle(emuThread->m_backupThrottleForTransfers);
297 }
298 emit emuThread->linkProgress(value, total);
299 return false;
300}
301
302void EmuThread::enqueueKeys(quint16 key1, quint16 key2, bool repeat) {
303 QMutexLocker locker(&m_keyQueueMutex);

Callers

nothing calls this directly

Calls 1

setThrottleMethod · 0.45

Tested by

no test coverage detected