Name threads to ease debugging

merge-requests/9/merge
Phil Taylor 2022-05-02 16:11:35 +01:00
rodzic 76e52c42db
commit a929b2b8a8
5 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -118,6 +118,7 @@ void rigCommander::commSetup(unsigned char rigCivAddr, udpPreferences prefs, aud
udp = new udpHandler(prefs,rxSetup,txSetup);
udpHandlerThread = new QThread(this);
udpHandlerThread->setObjectName("udpHandler()");
udp->moveToThread(udpHandlerThread);

Wyświetl plik

@ -104,6 +104,7 @@ void servermain::makeRig()
qInfo(logSystem()) << "Creating new rigThread()";
radio->rig = new rigCommander(radio->guid);
radio->rigThread = new QThread(this);
radio->rigThread->setObjectName("rigCommander()");
// Thread:
radio->rig->moveToThread(radio->rigThread);
@ -378,6 +379,7 @@ void servermain::setServerToPrefs()
udp = new udpServer(&serverConfig);
serverThread = new QThread(this);
serverThread->setObjectName("udpServer()");
udp->moveToThread(serverThread);

Wyświetl plik

@ -902,6 +902,7 @@ udpAudio::udpAudio(QHostAddress local, QHostAddress ip, quint16 audioPort, quint
rxaudio = new audioHandler();
rxAudioThread = new QThread(this);
rxAudioThread->setObjectName("rxAudio()");
rxaudio->moveToThread(rxAudioThread);
@ -929,6 +930,7 @@ udpAudio::udpAudio(QHostAddress local, QHostAddress ip, quint16 audioPort, quint
if (enableTx) {
txaudio = new audioHandler();
txAudioThread = new QThread(this);
rxAudioThread->setObjectName("txAudio()");
txaudio->moveToThread(txAudioThread);

Wyświetl plik

@ -368,6 +368,8 @@ void udpServer::controlReceived()
radio->txaudio = new audioHandler();
radio->txAudioThread = new QThread(this);
radio->txAudioThread->setObjectName("server txAudio()");
radio->txaudio->moveToThread(radio->txAudioThread);
@ -409,6 +411,7 @@ void udpServer::controlReceived()
radio->rxaudio = new audioHandler();
radio->rxAudioThread = new QThread(this);
radio->rxAudioThread->setObjectName("server rxAudio()");
radio->rxaudio->moveToThread(radio->rxAudioThread);

Wyświetl plik

@ -412,6 +412,8 @@ void wfmain::makeRig()
{
rig = new rigCommander();
rigThread = new QThread(this);
rigThread->setObjectName("rigCommander()");
// Thread:
rig->moveToThread(rigThread);