kopia lustrzana https://gitlab.com/eliggett/wfview
Name threads to ease debugging
rodzic
76e52c42db
commit
a929b2b8a8
|
@ -118,6 +118,7 @@ void rigCommander::commSetup(unsigned char rigCivAddr, udpPreferences prefs, aud
|
||||||
udp = new udpHandler(prefs,rxSetup,txSetup);
|
udp = new udpHandler(prefs,rxSetup,txSetup);
|
||||||
|
|
||||||
udpHandlerThread = new QThread(this);
|
udpHandlerThread = new QThread(this);
|
||||||
|
udpHandlerThread->setObjectName("udpHandler()");
|
||||||
|
|
||||||
udp->moveToThread(udpHandlerThread);
|
udp->moveToThread(udpHandlerThread);
|
||||||
|
|
||||||
|
|
|
@ -104,6 +104,7 @@ void servermain::makeRig()
|
||||||
qInfo(logSystem()) << "Creating new rigThread()";
|
qInfo(logSystem()) << "Creating new rigThread()";
|
||||||
radio->rig = new rigCommander(radio->guid);
|
radio->rig = new rigCommander(radio->guid);
|
||||||
radio->rigThread = new QThread(this);
|
radio->rigThread = new QThread(this);
|
||||||
|
radio->rigThread->setObjectName("rigCommander()");
|
||||||
|
|
||||||
// Thread:
|
// Thread:
|
||||||
radio->rig->moveToThread(radio->rigThread);
|
radio->rig->moveToThread(radio->rigThread);
|
||||||
|
@ -378,6 +379,7 @@ void servermain::setServerToPrefs()
|
||||||
udp = new udpServer(&serverConfig);
|
udp = new udpServer(&serverConfig);
|
||||||
|
|
||||||
serverThread = new QThread(this);
|
serverThread = new QThread(this);
|
||||||
|
serverThread->setObjectName("udpServer()");
|
||||||
|
|
||||||
udp->moveToThread(serverThread);
|
udp->moveToThread(serverThread);
|
||||||
|
|
||||||
|
|
|
@ -902,6 +902,7 @@ udpAudio::udpAudio(QHostAddress local, QHostAddress ip, quint16 audioPort, quint
|
||||||
|
|
||||||
rxaudio = new audioHandler();
|
rxaudio = new audioHandler();
|
||||||
rxAudioThread = new QThread(this);
|
rxAudioThread = new QThread(this);
|
||||||
|
rxAudioThread->setObjectName("rxAudio()");
|
||||||
|
|
||||||
rxaudio->moveToThread(rxAudioThread);
|
rxaudio->moveToThread(rxAudioThread);
|
||||||
|
|
||||||
|
@ -929,6 +930,7 @@ udpAudio::udpAudio(QHostAddress local, QHostAddress ip, quint16 audioPort, quint
|
||||||
if (enableTx) {
|
if (enableTx) {
|
||||||
txaudio = new audioHandler();
|
txaudio = new audioHandler();
|
||||||
txAudioThread = new QThread(this);
|
txAudioThread = new QThread(this);
|
||||||
|
rxAudioThread->setObjectName("txAudio()");
|
||||||
|
|
||||||
txaudio->moveToThread(txAudioThread);
|
txaudio->moveToThread(txAudioThread);
|
||||||
|
|
||||||
|
|
|
@ -368,6 +368,8 @@ void udpServer::controlReceived()
|
||||||
|
|
||||||
radio->txaudio = new audioHandler();
|
radio->txaudio = new audioHandler();
|
||||||
radio->txAudioThread = new QThread(this);
|
radio->txAudioThread = new QThread(this);
|
||||||
|
radio->txAudioThread->setObjectName("server txAudio()");
|
||||||
|
|
||||||
|
|
||||||
radio->txaudio->moveToThread(radio->txAudioThread);
|
radio->txaudio->moveToThread(radio->txAudioThread);
|
||||||
|
|
||||||
|
@ -409,6 +411,7 @@ void udpServer::controlReceived()
|
||||||
radio->rxaudio = new audioHandler();
|
radio->rxaudio = new audioHandler();
|
||||||
|
|
||||||
radio->rxAudioThread = new QThread(this);
|
radio->rxAudioThread = new QThread(this);
|
||||||
|
radio->rxAudioThread->setObjectName("server rxAudio()");
|
||||||
|
|
||||||
radio->rxaudio->moveToThread(radio->rxAudioThread);
|
radio->rxaudio->moveToThread(radio->rxAudioThread);
|
||||||
|
|
||||||
|
|
|
@ -412,6 +412,8 @@ void wfmain::makeRig()
|
||||||
{
|
{
|
||||||
rig = new rigCommander();
|
rig = new rigCommander();
|
||||||
rigThread = new QThread(this);
|
rigThread = new QThread(this);
|
||||||
|
rigThread->setObjectName("rigCommander()");
|
||||||
|
|
||||||
|
|
||||||
// Thread:
|
// Thread:
|
||||||
rig->moveToThread(rigThread);
|
rig->moveToThread(rigThread);
|
||||||
|
|
Ładowanie…
Reference in New Issue