chore: Add naming of initialized threads

This commit is contained in:
Paweł Kotiuk
2022-10-23 17:44:30 +02:00
committed by Paweł Kotiuk
parent ece973aaaf
commit a5ddbcbc67
4 changed files with 12 additions and 7 deletions

View File

@@ -56,6 +56,7 @@ InputDaemon::InputDaemon(QMap<SDL_JoystickID, InputDevice *> *joysticks, AntiMic
if (m_graphical)
{
sdlWorkerThread = new QThread;
sdlWorkerThread->setObjectName("sdlWorkerThread");
eventWorker->moveToThread(sdlWorkerThread);
connect(sdlWorkerThread, &QThread::started, eventWorker, &SDLEventReader::performWork);