mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Track worker construction and destruction
Added debug log messages in case a worker still exists when the `qApp` is destroyed. This would mean that a `quitAndWait` is missing or is being skipped somewhere.
This commit is contained in:
@@ -173,6 +173,14 @@ namespace BlackCore
|
||||
m_inputManager = new CInputManager(this);
|
||||
m_inputManager->createDevices();
|
||||
}
|
||||
|
||||
connect(this, &QObject::destroyed, [cat = CLogCategoryList(this)]
|
||||
{
|
||||
for (CWorkerBase *worker : CWorkerBase::allWorkers())
|
||||
{
|
||||
CLogMessage(cat).debug(u"Worker named '%1' still exists after application destroyed") << worker->objectName();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user