refactor: show thread names in GDB for better debugging (#848)

This commit is contained in:
Murat Seker
2020-06-28 23:43:45 +02:00
committed by GitHub
parent a68ed7d44f
commit 485beab4f3
4 changed files with 9 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ bool HyperionIManager::startInstance(const quint8& inst, const bool& block)
if(!_runningInstances.contains(inst) && !_startQueue.contains(inst))
{
QThread* hyperionThread = new QThread();
hyperionThread->setObjectName("HyperionIManagerThread");
Hyperion* hyperion = new Hyperion(inst);
hyperion->moveToThread(hyperionThread);
// setup thread management

View File

@@ -47,6 +47,7 @@ void LedDeviceWrapper::createLedDevice(const QJsonObject& config)
// create thread and device
QThread* thread = new QThread(this);
thread->setObjectName("LedDeviceWrapperThread");
_ledDevice = LedDeviceFactory::construct(config);
_ledDevice->moveToThread(thread);
// setup thread management