From 953391c171048c9fa2714e093fcb187bcb9743a9 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Sat, 26 Sep 2026 20:26:27 -0400 Subject: [PATCH] repo wide : Name SDRangel-owned threads for debugging Assign descriptive names to SDRangel threads so thread activity can be identified when investigating multi-threaded behavior, including crashes, leaks, and synchronization issues in debuggers and others tools. Use compact names to fit platform thread-name limits (14 chars) while retaining the component and thread role where possible. Signed-off-by: Robin Getz --- httpserver/httpconnectionhandler.cpp | 1 + plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp | 1 + plugins/channelmimo/doa2/doa2.cpp | 1 + plugins/channelmimo/interferometer/interferometer.cpp | 1 + plugins/channelrx/chanalyzer/chanalyzer.cpp | 2 ++ plugins/channelrx/channelpower/channelpower.cpp | 1 + plugins/channelrx/demodadsb/adsbdemod.cpp | 1 + plugins/channelrx/demodadsb/adsbdemodsinkworker.h | 1 + plugins/channelrx/demodais/aisdemod.cpp | 1 + plugins/channelrx/demodam/amdemod.cpp | 1 + plugins/channelrx/demodapt/aptdemod.cpp | 2 ++ plugins/channelrx/demodatv/atvdemod.cpp | 1 + plugins/channelrx/demodbfm/bfmdemod.cpp | 1 + plugins/channelrx/demodchirpchat/chirpchatdemod.cpp | 2 ++ plugins/channelrx/demoddab/dabdemod.cpp | 1 + plugins/channelrx/demoddatv/datvideorender.h | 2 ++ plugins/channelrx/demoddsc/dscdemod.cpp | 1 + plugins/channelrx/demoddsd/dsddemod.cpp | 1 + plugins/channelrx/demodendoftrain/endoftraindemod.cpp | 1 + plugins/channelrx/demodfreedv/freedvdemod.cpp | 1 + plugins/channelrx/demodft8/ft8demod.cpp | 1 + plugins/channelrx/demodft8/ft8demodbaseband.cpp | 2 ++ plugins/channelrx/demodils/ilsdemod.cpp | 1 + plugins/channelrx/demodinmarsat/inmarsatdemod.cpp | 1 + plugins/channelrx/demodm17/m17demod.cpp | 1 + plugins/channelrx/demodmeshcore/meshcoredemod.cpp | 4 ++++ plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp | 4 ++++ plugins/channelrx/demodnavtex/navtexdemod.cpp | 1 + plugins/channelrx/demodnfm/nfmdemod.cpp | 1 + plugins/channelrx/demodpacket/packetdemod.cpp | 1 + plugins/channelrx/demodpager/pagerdemod.cpp | 1 + plugins/channelrx/demodradiosonde/radiosondedemod.cpp | 1 + plugins/channelrx/demodrtty/rttydemod.cpp | 1 + plugins/channelrx/demodssb/ssbdemod.cpp | 1 + plugins/channelrx/demodvor/vordemod.cpp | 1 + plugins/channelrx/demodvormc/vordemodmc.cpp | 1 + plugins/channelrx/demodwfm/wfmdemod.cpp | 1 + plugins/channelrx/filesink/filesink.cpp | 1 + plugins/channelrx/freqscanner/freqscanner.cpp | 1 + plugins/channelrx/freqtracker/freqtracker.cpp | 1 + plugins/channelrx/heatmap/heatmap.cpp | 1 + plugins/channelrx/localsink/localsink.cpp | 1 + plugins/channelrx/localsink/localsinksink.cpp | 1 + plugins/channelrx/noisefigure/noisefigure.cpp | 1 + plugins/channelrx/radioastronomy/radioastronomy.cpp | 2 ++ plugins/channelrx/radioclock/radioclock.cpp | 1 + plugins/channelrx/remotesink/remotesink.cpp | 1 + plugins/channelrx/remotesink/remotesinksink.cpp | 1 + plugins/channelrx/remotetcpsink/remotetcpsink.cpp | 1 + plugins/channelrx/sigmffilesink/sigmffilesink.cpp | 1 + plugins/channelrx/udpsink/udpsink.cpp | 1 + plugins/channelrx/wdsprx/wdsprx.cpp | 1 + plugins/channeltx/filesource/filesource.cpp | 1 + plugins/channeltx/localsource/localsource.cpp | 1 + plugins/channeltx/localsource/localsourcesource.cpp | 4 +++- plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp | 1 + plugins/channeltx/modais/aismod.cpp | 1 + plugins/channeltx/modam/ammod.cpp | 1 + plugins/channeltx/modatv/atvmod.cpp | 1 + plugins/channeltx/modchirpchat/chirpchatmod.cpp | 1 + plugins/channeltx/moddatv/datvmod.cpp | 1 + plugins/channeltx/modfreedv/freedvmod.cpp | 1 + plugins/channeltx/modm17/m17mod.cpp | 1 + plugins/channeltx/modm17/m17modsource.cpp | 1 + plugins/channeltx/modmeshcore/meshcoremod.cpp | 1 + plugins/channeltx/modmeshtastic/meshtasticmod.cpp | 1 + plugins/channeltx/modnfm/nfmmod.cpp | 1 + plugins/channeltx/modpacket/packetmod.cpp | 1 + plugins/channeltx/modpsk31/psk31mod.cpp | 1 + plugins/channeltx/modrtty/rttymod.cpp | 1 + plugins/channeltx/modssb/ssbmod.cpp | 1 + plugins/channeltx/modwfm/wfmmod.cpp | 1 + plugins/channeltx/remotesource/remotesource.cpp | 1 + plugins/channeltx/remotesource/remotesourcesource.cpp | 1 + plugins/channeltx/udpsource/udpsource.cpp | 1 + plugins/feature/afc/afc.cpp | 1 + plugins/feature/ambe/ambeengine.cpp | 1 + plugins/feature/aprs/aprs.cpp | 1 + plugins/feature/demodanalyzer/demodanalyzer.cpp | 1 + plugins/feature/denoiser/denoiser.cpp | 1 + plugins/feature/gs232controller/gs232controller.cpp | 1 + plugins/feature/morsedecoder/morsedecoder.cpp | 1 + plugins/feature/pertester/pertester.cpp | 1 + plugins/feature/remotecontrol/remotecontrol.cpp | 1 + plugins/feature/rigctlserver/rigctlserver.cpp | 1 + plugins/feature/satellitetracker/satellitetracker.cpp | 1 + plugins/feature/sid/sid.cpp | 1 + plugins/feature/simpleptt/simpleptt.cpp | 1 + plugins/feature/startracker/startracker.cpp | 1 + plugins/feature/vorlocalizer/vorlocalizer.cpp | 1 + plugins/samplemimo/audiocatsiso/audiocatsiso.cpp | 3 +++ plugins/samplemimo/bladerf2mimo/bladerf2mithread.cpp | 1 + plugins/samplemimo/bladerf2mimo/bladerf2mothread.cpp | 1 + plugins/samplemimo/limesdrmimo/limesdrmithread.cpp | 1 + plugins/samplemimo/plutosdrmimo/plutosdrmithread.cpp | 1 + plugins/samplemimo/plutosdrmimo/plutosdrmothread.cpp | 1 + plugins/samplemimo/testmi/testmi.cpp | 2 ++ plugins/samplemimo/testmosync/testmosync.cpp | 1 + plugins/samplemimo/xtrxmimo/xtrxmithread.cpp | 1 + plugins/samplemimo/xtrxmimo/xtrxmothread.cpp | 1 + plugins/samplesink/aaroniartsaoutput/aaroniartsaoutput.cpp | 1 + plugins/samplesink/audiooutput/audiooutput.cpp | 1 + plugins/samplesink/bladerf1output/bladerf1outputthread.cpp | 1 + plugins/samplesink/bladerf2output/bladerf2outputthread.cpp | 1 + plugins/samplesink/fileoutput/fileoutput.cpp | 1 + plugins/samplesink/hackrfoutput/hackrfoutputthread.cpp | 1 + plugins/samplesink/limesdroutput/limesdroutputthread.cpp | 1 + plugins/samplesink/plutosdroutput/plutosdroutputthread.cpp | 1 + plugins/samplesink/remoteoutput/remoteoutput.cpp | 1 + plugins/samplesink/remoteoutput/udpsinkfec.cpp | 1 + plugins/samplesink/soapysdroutput/soapysdroutputthread.cpp | 1 + plugins/samplesink/testsink/testsinkoutput.cpp | 1 + plugins/samplesink/usrpoutput/usrpoutputthread.cpp | 1 + plugins/samplesink/xtrxoutput/xtrxoutputthread.cpp | 1 + plugins/samplesource/aaroniartsainput/aaroniartsainput.cpp | 1 + plugins/samplesource/airspy/airspyinput.cpp | 1 + plugins/samplesource/airspyhf/airspyhfinput.cpp | 1 + .../androidsdrdriverinput/androidsdrdriverinput.cpp | 1 + plugins/samplesource/audioinput/audioinput.cpp | 1 + plugins/samplesource/bladerf1input/bladerf1inputthread.cpp | 1 + plugins/samplesource/bladerf2input/bladerf2inputthread.cpp | 1 + plugins/samplesource/fcdpro/fcdprothread.cpp | 1 + plugins/samplesource/fcdproplus/fcdproplusthread.cpp | 1 + plugins/samplesource/fileinput/fileinput.cpp | 1 + plugins/samplesource/fobos/fobosinput.cpp | 1 + plugins/samplesource/hackrfinput/hackrfinputthread.cpp | 1 + plugins/samplesource/kiwisdr/kiwisdrinput.cpp | 1 + plugins/samplesource/perseus/perseusinput.cpp | 1 + plugins/samplesource/plutosdrinput/plutosdrinputthread.cpp | 1 + plugins/samplesource/remotetcpinput/remotetcpinput.cpp | 1 + plugins/samplesource/rtlsdr/rtlsdrthread.cpp | 1 + plugins/samplesource/sdrplay/sdrplaythread.cpp | 1 + plugins/samplesource/sigmffileinput/sigmffileinput.cpp | 1 + plugins/samplesource/soapysdrinput/soapysdrinputthread.cpp | 1 + plugins/samplesource/testsource/testsourceinput.cpp | 1 + plugins/samplesource/usrpinput/usrpinputthread.cpp | 1 + plugins/samplesource/xtrxinput/xtrxinputthread.cpp | 1 + sdrbase/audio/audiodevicemanager.cpp | 2 ++ sdrbase/pipes/datapipes.cpp | 1 + sdrbase/pipes/messagepipes.cpp | 1 + sdrbase/pipes/messagepipeslegacy.cpp | 1 + sdrgui/gui/samplingdevicedialog.cpp | 1 + 142 files changed, 160 insertions(+), 1 deletion(-) diff --git a/httpserver/httpconnectionhandler.cpp b/httpserver/httpconnectionhandler.cpp index 272458010..376fc74f2 100644 --- a/httpserver/httpconnectionhandler.cpp +++ b/httpserver/httpconnectionhandler.cpp @@ -13,6 +13,7 @@ HttpConnectionHandler::HttpConnectionHandler(QSettings* settings, HttpRequestHan { Q_ASSERT(settings != 0); Q_ASSERT(requestHandler != 0); + setObjectName("httpCnnctnHndlr"); this->settings = settings; this->listenerSettings = 0; this->requestHandler = requestHandler; diff --git a/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp b/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp index 8f303b1e3..4f52f4540 100644 --- a/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp +++ b/plugins/channelmimo/beamsteeringcwmod/beamsteeringcwmod.cpp @@ -102,6 +102,7 @@ void BeamSteeringCWMod::startSources() qDebug("BeamSteeringCWMod::startSources"); m_thread = new QThread(this); + m_thread->setObjectName("BeamSteerCWMod"); m_basebandSource = new BeamSteeringCWModBaseband(); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/channelmimo/doa2/doa2.cpp b/plugins/channelmimo/doa2/doa2.cpp index 87e9e9bdc..555823380 100644 --- a/plugins/channelmimo/doa2/doa2.cpp +++ b/plugins/channelmimo/doa2/doa2.cpp @@ -105,6 +105,7 @@ void DOA2::startSinks() qDebug("DOA2::startSinks"); m_thread = new QThread(this); + m_thread->setObjectName("DOA2"); m_basebandSink = new DOA2Baseband(m_fftSize); m_basebandSink->setScopeSink(&m_scopeSink); m_basebandSink->moveToThread(m_thread); diff --git a/plugins/channelmimo/interferometer/interferometer.cpp b/plugins/channelmimo/interferometer/interferometer.cpp index 6db7cd563..f92f0d30a 100644 --- a/plugins/channelmimo/interferometer/interferometer.cpp +++ b/plugins/channelmimo/interferometer/interferometer.cpp @@ -124,6 +124,7 @@ void Interferometer::startSinks() qDebug("Interferometer::startSinks"); m_thread = new QThread(this); + m_thread->setObjectName("Interferometer"); m_basebandSink = new InterferometerBaseband(m_fftSize); m_basebandSink->setSpectrumSink(&m_spectrumVis); m_basebandSink->setScopeSink(&m_scopeSink); diff --git a/plugins/channelrx/chanalyzer/chanalyzer.cpp b/plugins/channelrx/chanalyzer/chanalyzer.cpp index ba4d7da43..f49e656ac 100644 --- a/plugins/channelrx/chanalyzer/chanalyzer.cpp +++ b/plugins/channelrx/chanalyzer/chanalyzer.cpp @@ -53,6 +53,8 @@ ChannelAnalyzer::ChannelAnalyzer(DeviceAPI *deviceAPI) : { qDebug("ChannelAnalyzer::ChannelAnalyzer"); setObjectName(m_channelId); + m_thread.setObjectName("Channelyzer"); + getChannelSampleRate(); m_basebandSink = new ChannelAnalyzerBaseband(); m_basebandSink->moveToThread(&m_thread); diff --git a/plugins/channelrx/channelpower/channelpower.cpp b/plugins/channelrx/channelpower/channelpower.cpp index 5d4f724d8..32e0579a4 100644 --- a/plugins/channelrx/channelpower/channelpower.cpp +++ b/plugins/channelrx/channelpower/channelpower.cpp @@ -49,6 +49,7 @@ ChannelPower::ChannelPower(DeviceAPI *deviceAPI) : m_centerFrequency(0) { setObjectName(m_channelId); + m_thread.setObjectName("ChannelPower"); m_basebandSink = new ChannelPowerBaseband(); m_basebandSink->setChannel(this); diff --git a/plugins/channelrx/demodadsb/adsbdemod.cpp b/plugins/channelrx/demodadsb/adsbdemod.cpp index d03bfcd0c..78085f698 100644 --- a/plugins/channelrx/demodadsb/adsbdemod.cpp +++ b/plugins/channelrx/demodadsb/adsbdemod.cpp @@ -64,6 +64,7 @@ ADSBDemod::ADSBDemod(DeviceAPI *devieAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("ADSBDemodBB"); m_basebandSink = new ADSBDemodBaseband(); m_basebandSink->moveToThread(m_thread); diff --git a/plugins/channelrx/demodadsb/adsbdemodsinkworker.h b/plugins/channelrx/demodadsb/adsbdemodsinkworker.h index 38a8c45d4..ab8e2c3aa 100644 --- a/plugins/channelrx/demodadsb/adsbdemodsinkworker.h +++ b/plugins/channelrx/demodadsb/adsbdemodsinkworker.h @@ -66,6 +66,7 @@ public: m_correlationThresholdLinear(0.02f), m_crc() { + setObjectName("ADSBDemodWork"); } void run() override; MessageQueue *getInputMessageQueue() { return &m_inputMessageQueue; } diff --git a/plugins/channelrx/demodais/aisdemod.cpp b/plugins/channelrx/demodais/aisdemod.cpp index 3c745e8e1..156fa8d97 100644 --- a/plugins/channelrx/demodais/aisdemod.cpp +++ b/plugins/channelrx/demodais/aisdemod.cpp @@ -51,6 +51,7 @@ AISDemod::AISDemod(DeviceAPI *deviceAPI) : m_centerFrequency(0) { setObjectName(m_channelId); + m_thread.setObjectName("AISDemod"); m_basebandSink = new AISDemodBaseband(this); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demodam/amdemod.cpp b/plugins/channelrx/demodam/amdemod.cpp index f66b6a004..feaf22aea 100644 --- a/plugins/channelrx/demodam/amdemod.cpp +++ b/plugins/channelrx/demodam/amdemod.cpp @@ -127,6 +127,7 @@ void AMDemod::start() qDebug("AMDemod::start"); m_thread = new QThread(); + m_thread->setObjectName("AMDemod"); m_basebandSink = new AMDemodBaseband(); m_basebandSink->setChannel(this); m_basebandSink->moveToThread(m_thread); diff --git a/plugins/channelrx/demodapt/aptdemod.cpp b/plugins/channelrx/demodapt/aptdemod.cpp index 4628bb56e..be6ace9ae 100644 --- a/plugins/channelrx/demodapt/aptdemod.cpp +++ b/plugins/channelrx/demodapt/aptdemod.cpp @@ -54,6 +54,8 @@ APTDemod::APTDemod(DeviceAPI *deviceAPI) : m_basebandSampleRate(0) { setObjectName(m_channelId); + m_imageThread.setObjectName("APTDemodImage"); + m_thread.setObjectName("APTDemodBB"); m_basebandSink = new APTDemodBaseband(); m_basebandSink->moveToThread(&m_thread); diff --git a/plugins/channelrx/demodatv/atvdemod.cpp b/plugins/channelrx/demodatv/atvdemod.cpp index 27d20ce5a..6f7410631 100644 --- a/plugins/channelrx/demodatv/atvdemod.cpp +++ b/plugins/channelrx/demodatv/atvdemod.cpp @@ -41,6 +41,7 @@ ATVDemod::ATVDemod(DeviceAPI *deviceAPI) : { qDebug("ATVDemod::ATVDemod"); setObjectName(m_channelId); + m_thread.setObjectName("ATVDemodBB"); m_basebandSink = new ATVDemodBaseband(); m_basebandSink->setFifoLabel(QString("%1 [%2:%3]") diff --git a/plugins/channelrx/demodbfm/bfmdemod.cpp b/plugins/channelrx/demodbfm/bfmdemod.cpp index 47f42ed63..f50006ae6 100644 --- a/plugins/channelrx/demodbfm/bfmdemod.cpp +++ b/plugins/channelrx/demodbfm/bfmdemod.cpp @@ -126,6 +126,7 @@ void BFMDemod::start() qDebug() << "BFMDemod::start"; m_thread = new QThread(); + m_thread->setObjectName("BFMDemod"); m_basebandSink = new BFMDemodBaseband(); m_basebandSink->setSpectrumSink(&m_spectrumVis); m_basebandSink->setChannel(this); diff --git a/plugins/channelrx/demodchirpchat/chirpchatdemod.cpp b/plugins/channelrx/demodchirpchat/chirpchatdemod.cpp index bddc7f512..d8dbf8e12 100644 --- a/plugins/channelrx/demodchirpchat/chirpchatdemod.cpp +++ b/plugins/channelrx/demodchirpchat/chirpchatdemod.cpp @@ -136,6 +136,7 @@ void ChirpChatDemod::start() qDebug() << "ChirpChatDemod::start"; m_decoderThread = new QThread(this); + m_decoderThread->setObjectName("CCDemod:decode"); m_decoder = new ChirpChatDemodDecoder(); m_decoder->setOutputMessageQueue(getInputMessageQueue()); m_decoder->setNbSymbolBits(m_settings.m_spreadFactor, m_settings.m_deBits); @@ -151,6 +152,7 @@ void ChirpChatDemod::start() m_decoderThread->start(); m_thread = new QThread(this); + m_thread->setObjectName("CCDemod:bb"); m_basebandSink = new ChirpChatDemodBaseband(); m_basebandSink->setSpectrumSink(&m_spectrumVis); m_basebandSink->setDecoderMessageQueue(m_decoder->getInputMessageQueue()); diff --git a/plugins/channelrx/demoddab/dabdemod.cpp b/plugins/channelrx/demoddab/dabdemod.cpp index b0daca5d6..da489a8d8 100644 --- a/plugins/channelrx/demoddab/dabdemod.cpp +++ b/plugins/channelrx/demoddab/dabdemod.cpp @@ -79,6 +79,7 @@ DABDemod::DABDemod(DeviceAPI *deviceAPI) : m_reportTII(0) { setObjectName(m_channelId); + m_thread.setObjectName("DABDemodBB"); m_basebandSink = new DABDemodBaseband(); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demoddatv/datvideorender.h b/plugins/channelrx/demoddatv/datvideorender.h index ed79aa37f..88124e5ed 100644 --- a/plugins/channelrx/demoddatv/datvideorender.h +++ b/plugins/channelrx/demoddatv/datvideorender.h @@ -187,6 +187,7 @@ class DATVideoRenderThread : public QThread public: DATVideoRenderThread() { + setObjectName("DATVideoRender"); m_renderer = nullptr; m_stream = nullptr; m_renderingVideo = false; @@ -194,6 +195,7 @@ class DATVideoRenderThread : public QThread DATVideoRenderThread(DATVideoRender *renderer, DATVideostream *stream) { + setObjectName("DATVideoRender"); m_renderer = renderer; m_stream = stream; m_renderingVideo = false; diff --git a/plugins/channelrx/demoddsc/dscdemod.cpp b/plugins/channelrx/demoddsc/dscdemod.cpp index 36f2aa49b..6c0beae46 100644 --- a/plugins/channelrx/demoddsc/dscdemod.cpp +++ b/plugins/channelrx/demoddsc/dscdemod.cpp @@ -52,6 +52,7 @@ DSCDemod::DSCDemod(DeviceAPI *deviceAPI) : m_basebandSampleRate(0) { setObjectName(m_channelId); + m_thread.setObjectName("DSCDemodBB"); m_basebandSink = new DSCDemodBaseband(this); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demoddsd/dsddemod.cpp b/plugins/channelrx/demoddsd/dsddemod.cpp index 11c6d1998..9994413d4 100644 --- a/plugins/channelrx/demoddsd/dsddemod.cpp +++ b/plugins/channelrx/demoddsd/dsddemod.cpp @@ -155,6 +155,7 @@ void DSDDemod::start() qDebug() << "DSDDemod::start"; m_thread = new QThread(); + m_thread->setObjectName("DSDDemod"); m_basebandSink = new DSDDemodBaseband(); m_basebandSink->setFifoLabel(QString("%1 [%2:%3]") .arg(m_channelId) diff --git a/plugins/channelrx/demodendoftrain/endoftraindemod.cpp b/plugins/channelrx/demodendoftrain/endoftraindemod.cpp index 997ca1301..f3444cab9 100644 --- a/plugins/channelrx/demodendoftrain/endoftraindemod.cpp +++ b/plugins/channelrx/demodendoftrain/endoftraindemod.cpp @@ -47,6 +47,7 @@ EndOfTrainDemod::EndOfTrainDemod(DeviceAPI *deviceAPI) : m_basebandSampleRate(0) { setObjectName(m_channelId); + m_thread.setObjectName("EndOfTrainBB"); m_basebandSink = new EndOfTrainDemodBaseband(this); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demodfreedv/freedvdemod.cpp b/plugins/channelrx/demodfreedv/freedvdemod.cpp index e0687f46a..7e1fda8d6 100644 --- a/plugins/channelrx/demodfreedv/freedvdemod.cpp +++ b/plugins/channelrx/demodfreedv/freedvdemod.cpp @@ -55,6 +55,7 @@ FreeDVDemod::FreeDVDemod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("FreeDVDemod"); m_basebandSink = new FreeDVDemodBaseband(); m_basebandSink->setSpectrumSink(&m_spectrumVis); m_basebandSink->moveToThread(m_thread); diff --git a/plugins/channelrx/demodft8/ft8demod.cpp b/plugins/channelrx/demodft8/ft8demod.cpp index 377c787e0..412dd26ad 100644 --- a/plugins/channelrx/demodft8/ft8demod.cpp +++ b/plugins/channelrx/demodft8/ft8demod.cpp @@ -157,6 +157,7 @@ void FT8Demod::start() qDebug() << "FT8Demod::start"; m_thread = new QThread(); + m_thread->setObjectName("FT8Demod"); m_basebandSink = new FT8DemodBaseband(); m_basebandSink->setFifoLabel(QString("%1 [%2:%3]") .arg(m_channelId) diff --git a/plugins/channelrx/demodft8/ft8demodbaseband.cpp b/plugins/channelrx/demodft8/ft8demodbaseband.cpp index c9188de73..8525c87ae 100644 --- a/plugins/channelrx/demodft8/ft8demodbaseband.cpp +++ b/plugins/channelrx/demodft8/ft8demodbaseband.cpp @@ -42,6 +42,7 @@ FT8DemodBaseband::FT8DemodBaseband() : m_ft8WorkerBuffer = new int16_t[FT8DemodSettings::m_ft8SampleRate*15]; m_workerThread = new QThread(); + m_workerThread->setObjectName("FT8DemodBB:W"); m_ft8DemodWorker = new FT8DemodWorker(); m_ft8DemodWorker->moveToThread(m_workerThread); @@ -63,6 +64,7 @@ FT8DemodBaseband::FT8DemodBaseband() : m_workerThread->start(); m_pskReporterThread = new QThread(); + m_pskReporterThread->setObjectName("pskReporter"); m_pskReporterWorker = new PskReporterWorker(); m_ft8DemodWorker->setPSKReportingMessageQueue(m_pskReporterWorker->getInputMessageQueue()); m_pskReporterWorker->moveToThread(m_pskReporterThread); diff --git a/plugins/channelrx/demodils/ilsdemod.cpp b/plugins/channelrx/demodils/ilsdemod.cpp index 111ccc463..2d5f69eff 100644 --- a/plugins/channelrx/demodils/ilsdemod.cpp +++ b/plugins/channelrx/demodils/ilsdemod.cpp @@ -60,6 +60,7 @@ ILSDemod::ILSDemod(DeviceAPI *deviceAPI) : m_angle(NAN) { setObjectName(m_channelId); + m_thread.setObjectName("ILSDemodBB"); m_basebandSink = new ILSDemodBaseband(); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demodinmarsat/inmarsatdemod.cpp b/plugins/channelrx/demodinmarsat/inmarsatdemod.cpp index 1e5865d8c..845859c4c 100644 --- a/plugins/channelrx/demodinmarsat/inmarsatdemod.cpp +++ b/plugins/channelrx/demodinmarsat/inmarsatdemod.cpp @@ -47,6 +47,7 @@ InmarsatDemod::InmarsatDemod(DeviceAPI *deviceAPI) : m_basebandSampleRate(0) { setObjectName(m_channelId); + m_thread.setObjectName("InmarsatBB"); m_basebandSink = new InmarsatDemodBaseband(this); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demodm17/m17demod.cpp b/plugins/channelrx/demodm17/m17demod.cpp index 46285c615..e30f4fd46 100644 --- a/plugins/channelrx/demodm17/m17demod.cpp +++ b/plugins/channelrx/demodm17/m17demod.cpp @@ -133,6 +133,7 @@ void M17Demod::start() qDebug() << "M17Demod::start"; m_thread = new QThread(this); + m_thread->setObjectName("M17Demod"); m_basebandSink = new M17DemodBaseband(); m_basebandSink->setChannel(this); m_basebandSink->setDemodInputMessageQueue(&m_inputMessageQueue); diff --git a/plugins/channelrx/demodmeshcore/meshcoredemod.cpp b/plugins/channelrx/demodmeshcore/meshcoredemod.cpp index 4825a20b7..33f188cd8 100644 --- a/plugins/channelrx/demodmeshcore/meshcoredemod.cpp +++ b/plugins/channelrx/demodmeshcore/meshcoredemod.cpp @@ -296,6 +296,7 @@ void MeshcoreDemod::startPipelines(const std::vector& configs) runtime.settings = config.settings; runtime.decoderThread = new QThread(); + runtime.decoderThread->setObjectName(QString("MCDemod:dc:%1").arg(runtime.id)); runtime.decoder = new MeshcoreDemodDecoder(); runtime.decoder->setOutputMessageQueue(getInputMessageQueue()); runtime.decoder->setPipelineMetadata(runtime.id, runtime.name, runtime.presetName); @@ -305,6 +306,7 @@ void MeshcoreDemod::startPipelines(const std::vector& configs) runtime.decoderThread->start(); runtime.basebandThread = new QThread(); + runtime.basebandThread->setObjectName(QString("MCDemod:bb:%1").arg(runtime.id)); runtime.basebandSink = new MeshcoreDemodBaseband(); if (config.id == 0) { @@ -464,6 +466,7 @@ void MeshcoreDemod::applyExtraPipelineSettings(const QVectorsetObjectName(QString("MCDemod:dc:%1").arg(runtime.id)); runtime.decoder = new MeshcoreDemodDecoder(); runtime.decoder->setOutputMessageQueue(getInputMessageQueue()); runtime.decoder->setPipelineMetadata(runtime.id, runtime.name, runtime.presetName); @@ -472,6 +475,7 @@ void MeshcoreDemod::applyExtraPipelineSettings(const QVectorstart(); runtime.basebandThread = new QThread(); + runtime.basebandThread->setObjectName(QString("MCDemod:bb:%1").arg(runtime.id)); runtime.basebandSink = new MeshcoreDemodBaseband(); // Secondary pipelines (id != 0) do not own the spectrum visualiser. runtime.basebandSink->setDecoderMessageQueue(runtime.decoder->getInputMessageQueue()); diff --git a/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp b/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp index 245d4c979..06db1daaf 100644 --- a/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp +++ b/plugins/channelrx/demodmeshtastic/meshtasticdemod.cpp @@ -295,6 +295,7 @@ void MeshtasticDemod::startPipelines(const std::vector& configs) runtime.settings = config.settings; runtime.decoderThread = new QThread(); + runtime.decoderThread->setObjectName(QString("Mesh:dc:%1").arg(config.id)); runtime.decoder = new MeshtasticDemodDecoder(); runtime.decoder->setOutputMessageQueue(getInputMessageQueue()); runtime.decoder->setPipelineMetadata(runtime.id, runtime.name, runtime.presetName); @@ -304,6 +305,7 @@ void MeshtasticDemod::startPipelines(const std::vector& configs) runtime.decoderThread->start(); runtime.basebandThread = new QThread(); + runtime.basebandThread->setObjectName(QString("Mesh:bb:%1").arg(config.id)); runtime.basebandSink = new MeshtasticDemodBaseband(); if (config.id == 0) { @@ -463,6 +465,7 @@ void MeshtasticDemod::applyExtraPipelineSettings(const QVectorsetObjectName(QString("Mesh:dc:%1").arg(config.id)); runtime.decoder = new MeshtasticDemodDecoder(); runtime.decoder->setOutputMessageQueue(getInputMessageQueue()); runtime.decoder->setPipelineMetadata(runtime.id, runtime.name, runtime.presetName); @@ -471,6 +474,7 @@ void MeshtasticDemod::applyExtraPipelineSettings(const QVectorstart(); runtime.basebandThread = new QThread(); + runtime.basebandThread->setObjectName(QString("Mesh:bb:%1").arg(config.id)); runtime.basebandSink = new MeshtasticDemodBaseband(); // Secondary pipelines (id != 0) do not own the spectrum visualiser. runtime.basebandSink->setDecoderMessageQueue(runtime.decoder->getInputMessageQueue()); diff --git a/plugins/channelrx/demodnavtex/navtexdemod.cpp b/plugins/channelrx/demodnavtex/navtexdemod.cpp index 265eacb7c..8594f7044 100644 --- a/plugins/channelrx/demodnavtex/navtexdemod.cpp +++ b/plugins/channelrx/demodnavtex/navtexdemod.cpp @@ -52,6 +52,7 @@ NavtexDemod::NavtexDemod(DeviceAPI *deviceAPI) : m_basebandSampleRate(0) { setObjectName(m_channelId); + m_thread.setObjectName("NavtexDemodBB"); m_basebandSink = new NavtexDemodBaseband(); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demodnfm/nfmdemod.cpp b/plugins/channelrx/demodnfm/nfmdemod.cpp index 92c4fc289..cd1814476 100644 --- a/plugins/channelrx/demodnfm/nfmdemod.cpp +++ b/plugins/channelrx/demodnfm/nfmdemod.cpp @@ -129,6 +129,7 @@ void NFMDemod::start() qDebug() << "NFMDemod::start"; m_thread = new QThread(); + m_thread->setObjectName("NFMDemod"); m_basebandSink = new NFMDemodBaseband(); m_basebandSink->setFifoLabel(QString("%1 [%2:%3]") .arg(m_channelId) diff --git a/plugins/channelrx/demodpacket/packetdemod.cpp b/plugins/channelrx/demodpacket/packetdemod.cpp index bc8b70f11..1f1ef5ae3 100644 --- a/plugins/channelrx/demodpacket/packetdemod.cpp +++ b/plugins/channelrx/demodpacket/packetdemod.cpp @@ -51,6 +51,7 @@ PacketDemod::PacketDemod(DeviceAPI *deviceAPI) : m_basebandSampleRate(0) { setObjectName(m_channelId); + m_thread.setObjectName("PacketDemodBB"); m_basebandSink = new PacketDemodBaseband(this); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demodpager/pagerdemod.cpp b/plugins/channelrx/demodpager/pagerdemod.cpp index 9f01a7ea2..a37be646d 100644 --- a/plugins/channelrx/demodpager/pagerdemod.cpp +++ b/plugins/channelrx/demodpager/pagerdemod.cpp @@ -47,6 +47,7 @@ PagerDemod::PagerDemod(DeviceAPI *deviceAPI) : m_centerFrequency(0) { setObjectName(m_channelId); + m_thread.setObjectName("PagerDemodBB"); m_basebandSink = new PagerDemodBaseband(); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demodradiosonde/radiosondedemod.cpp b/plugins/channelrx/demodradiosonde/radiosondedemod.cpp index 65758e3d8..b6fde1014 100644 --- a/plugins/channelrx/demodradiosonde/radiosondedemod.cpp +++ b/plugins/channelrx/demodradiosonde/radiosondedemod.cpp @@ -49,6 +49,7 @@ RadiosondeDemod::RadiosondeDemod(DeviceAPI *deviceAPI) : m_basebandSampleRate(0) { setObjectName(m_channelId); + m_thread.setObjectName("RadiosondeDeBB"); m_basebandSink = new RadiosondeDemodBaseband(this); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demodrtty/rttydemod.cpp b/plugins/channelrx/demodrtty/rttydemod.cpp index f50637209..15b92fd84 100644 --- a/plugins/channelrx/demodrtty/rttydemod.cpp +++ b/plugins/channelrx/demodrtty/rttydemod.cpp @@ -52,6 +52,7 @@ RttyDemod::RttyDemod(DeviceAPI *deviceAPI) : m_basebandSampleRate(0) { setObjectName(m_channelId); + m_thread.setObjectName("RttyDemodBB"); m_basebandSink = new RttyDemodBaseband(); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/demodssb/ssbdemod.cpp b/plugins/channelrx/demodssb/ssbdemod.cpp index 4c5378f96..da2d99eb6 100644 --- a/plugins/channelrx/demodssb/ssbdemod.cpp +++ b/plugins/channelrx/demodssb/ssbdemod.cpp @@ -143,6 +143,7 @@ void SSBDemod::start() qDebug() << "SSBDemod::start"; m_thread = new QThread(); + m_thread->setObjectName("SSBDemod"); m_basebandSink = new SSBDemodBaseband(); m_basebandSink->setFifoLabel(QString("%1 [%2:%3]") .arg(m_channelId) diff --git a/plugins/channelrx/demodvor/vordemod.cpp b/plugins/channelrx/demodvor/vordemod.cpp index a09de93f5..70ce88c95 100644 --- a/plugins/channelrx/demodvor/vordemod.cpp +++ b/plugins/channelrx/demodvor/vordemod.cpp @@ -133,6 +133,7 @@ void VORDemod::start() qDebug("VORDemod::start"); m_thread = new QThread(); + m_thread->setObjectName("VORDemod"); m_basebandSink = new VORDemodBaseband(); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); m_basebandSink->moveToThread(m_thread); diff --git a/plugins/channelrx/demodvormc/vordemodmc.cpp b/plugins/channelrx/demodvormc/vordemodmc.cpp index 315cf2edd..afe1d16d1 100644 --- a/plugins/channelrx/demodvormc/vordemodmc.cpp +++ b/plugins/channelrx/demodvormc/vordemodmc.cpp @@ -50,6 +50,7 @@ VORDemodMC::VORDemodMC(DeviceAPI *deviceAPI) : m_basebandSampleRate(0) { setObjectName(m_channelId); + m_thread.setObjectName("VORDemodMCBB"); m_basebandSink = new VORDemodMCBaseband(); m_basebandSink->moveToThread(&m_thread); diff --git a/plugins/channelrx/demodwfm/wfmdemod.cpp b/plugins/channelrx/demodwfm/wfmdemod.cpp index b2552c864..ca2a613f0 100644 --- a/plugins/channelrx/demodwfm/wfmdemod.cpp +++ b/plugins/channelrx/demodwfm/wfmdemod.cpp @@ -132,6 +132,7 @@ void WFMDemod::start() qDebug() << "WFMDemod::start"; m_thread = new QThread(this); + m_thread->setObjectName("WFMDemod"); m_basebandSink = new WFMDemodBaseband(); m_basebandSink->setChannel(this); m_basebandSink->moveToThread(m_thread); diff --git a/plugins/channelrx/filesink/filesink.cpp b/plugins/channelrx/filesink/filesink.cpp index 33f8697dc..f9e7d0945 100644 --- a/plugins/channelrx/filesink/filesink.cpp +++ b/plugins/channelrx/filesink/filesink.cpp @@ -145,6 +145,7 @@ void FileSink::start() qDebug("FileSink::start"); m_thread = new QThread(); + m_thread->setObjectName("FileSink"); m_basebandSink = new FileSinkBaseband(); m_basebandSink->setFifoLabel(QString("%1 [%2:%3]") .arg(m_channelId) diff --git a/plugins/channelrx/freqscanner/freqscanner.cpp b/plugins/channelrx/freqscanner/freqscanner.cpp index b29957194..fda833270 100644 --- a/plugins/channelrx/freqscanner/freqscanner.cpp +++ b/plugins/channelrx/freqscanner/freqscanner.cpp @@ -154,6 +154,7 @@ void FreqScanner::start() qDebug("FreqScanner::start"); m_thread = new QThread(); + m_thread->setObjectName("FreqScanner"); m_basebandSink = new FreqScannerBaseband(this); m_basebandSink->setFifoLabel(QString("%1 [%2:%3]") .arg(m_channelId) diff --git a/plugins/channelrx/freqtracker/freqtracker.cpp b/plugins/channelrx/freqtracker/freqtracker.cpp index 99f71a521..b614e641b 100644 --- a/plugins/channelrx/freqtracker/freqtracker.cpp +++ b/plugins/channelrx/freqtracker/freqtracker.cpp @@ -130,6 +130,7 @@ void FreqTracker::start() qDebug("FreqTracker::start"); m_thread = new QThread(this); + m_thread->setObjectName("FreqTracker"); m_basebandSink = new FreqTrackerBaseband(); m_basebandSink->setSpectrumSink(&m_spectrumVis); m_basebandSink->setMessageQueueToInput(getInputMessageQueue()); diff --git a/plugins/channelrx/heatmap/heatmap.cpp b/plugins/channelrx/heatmap/heatmap.cpp index 3d3d8b3bc..b05aa6782 100644 --- a/plugins/channelrx/heatmap/heatmap.cpp +++ b/plugins/channelrx/heatmap/heatmap.cpp @@ -48,6 +48,7 @@ HeatMap::HeatMap(DeviceAPI *deviceAPI) : m_centerFrequency(0) { setObjectName(m_channelId); + m_thread.setObjectName("HeatMapBB"); m_basebandSink = new HeatMapBaseband(); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/localsink/localsink.cpp b/plugins/channelrx/localsink/localsink.cpp index c96fc6575..2b95bd981 100644 --- a/plugins/channelrx/localsink/localsink.cpp +++ b/plugins/channelrx/localsink/localsink.cpp @@ -148,6 +148,7 @@ void LocalSink::startProcessing() qDebug("LocalSink::startProcessing"); m_thread = new QThread(this); + m_thread->setObjectName("LocalSink"); m_basebandSink = new LocalSinkBaseband(); m_basebandSink->setSpectrumSink(&m_spectrumVis); m_basebandSink->moveToThread(m_thread); diff --git a/plugins/channelrx/localsink/localsinksink.cpp b/plugins/channelrx/localsink/localsinksink.cpp index d3dcf60ab..26fe15c7d 100644 --- a/plugins/channelrx/localsink/localsinksink.cpp +++ b/plugins/channelrx/localsink/localsinksink.cpp @@ -38,6 +38,7 @@ LocalSinkSink::LocalSinkSink() : m_sampleRate(48000), m_deviceSampleRate(48000) { + m_sinkWorkerThread.setObjectName("LocalSinkSinkWr"); m_sampleFifo.setSize(SampleSinkFifo::getSizePolicy(4000000)); // m_fftFilter = new fftfilt(0.1f, 0.4f, 1<setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/radioastronomy/radioastronomy.cpp b/plugins/channelrx/radioastronomy/radioastronomy.cpp index 107b19211..f11ecf638 100644 --- a/plugins/channelrx/radioastronomy/radioastronomy.cpp +++ b/plugins/channelrx/radioastronomy/radioastronomy.cpp @@ -74,6 +74,8 @@ RadioAstronomy::RadioAstronomy(DeviceAPI *deviceAPI) : { qDebug("RadioAstronomy::RadioAstronomy"); setObjectName(m_channelId); + m_thread.setObjectName("RadioAstroBB"); + m_workerThread.setObjectName("RadioAstroWk"); m_basebandSink = new RadioAstronomyBaseband(this); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/radioclock/radioclock.cpp b/plugins/channelrx/radioclock/radioclock.cpp index 9401aed96..c0f5232a0 100644 --- a/plugins/channelrx/radioclock/radioclock.cpp +++ b/plugins/channelrx/radioclock/radioclock.cpp @@ -51,6 +51,7 @@ RadioClock::RadioClock(DeviceAPI *deviceAPI) : m_centerFrequency(0) { setObjectName(m_channelId); + m_thread.setObjectName("RadioClockBB"); m_basebandSink = new RadioClockBaseband(); m_basebandSink->setMessageQueueToChannel(getInputMessageQueue()); diff --git a/plugins/channelrx/remotesink/remotesink.cpp b/plugins/channelrx/remotesink/remotesink.cpp index 2956a6167..313c8054f 100644 --- a/plugins/channelrx/remotesink/remotesink.cpp +++ b/plugins/channelrx/remotesink/remotesink.cpp @@ -130,6 +130,7 @@ void RemoteSink::start() qDebug("RemoteSink::start: m_basebandSampleRate: %d", m_basebandSampleRate); m_thread = new QThread(); + m_thread->setObjectName("RemoteSink"); m_basebandSink = new RemoteSinkBaseband(); m_basebandSink->moveToThread(m_thread); diff --git a/plugins/channelrx/remotesink/remotesinksink.cpp b/plugins/channelrx/remotesink/remotesinksink.cpp index fbe19e9f3..60142cd3a 100644 --- a/plugins/channelrx/remotesink/remotesinksink.cpp +++ b/plugins/channelrx/remotesink/remotesinksink.cpp @@ -44,6 +44,7 @@ RemoteSinkSink::RemoteSinkSink() : m_dataPort(9090) { qDebug("RemoteSinkSink::RemoteSinkSink"); + m_senderThread.setObjectName("RmtSnkSnkSnd"); applySettings(QStringList(), m_settings, true); } diff --git a/plugins/channelrx/remotetcpsink/remotetcpsink.cpp b/plugins/channelrx/remotetcpsink/remotetcpsink.cpp index 46ad2907d..f466f17f7 100644 --- a/plugins/channelrx/remotetcpsink/remotetcpsink.cpp +++ b/plugins/channelrx/remotetcpsink/remotetcpsink.cpp @@ -59,6 +59,7 @@ RemoteTCPSink::RemoteTCPSink(DeviceAPI *deviceAPI) : m_removeRequest(nullptr) { setObjectName(m_channelId); + m_thread.setObjectName("RemoteTCPSinkBB"); m_basebandSink = new RemoteTCPSinkBaseband(); m_basebandSink->setMessageQueueToChannel(&m_inputMessageQueue); diff --git a/plugins/channelrx/sigmffilesink/sigmffilesink.cpp b/plugins/channelrx/sigmffilesink/sigmffilesink.cpp index 5d826ea2d..7469e5f6d 100644 --- a/plugins/channelrx/sigmffilesink/sigmffilesink.cpp +++ b/plugins/channelrx/sigmffilesink/sigmffilesink.cpp @@ -144,6 +144,7 @@ void SigMFFileSink::start() qDebug("SigMFFileSink::start"); m_thread = new QThread(); + m_thread->setObjectName("SigMFFileSink"); m_basebandSink = new SigMFFileSinkBaseband(); m_basebandSink->setFifoLabel(QString("%1 [%2:%3]") .arg(m_channelId) diff --git a/plugins/channelrx/udpsink/udpsink.cpp b/plugins/channelrx/udpsink/udpsink.cpp index 6480bdddf..721b5d505 100644 --- a/plugins/channelrx/udpsink/udpsink.cpp +++ b/plugins/channelrx/udpsink/udpsink.cpp @@ -57,6 +57,7 @@ UDPSink::UDPSink(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("UDPSink"); m_basebandSink = new UDPSinkBaseband(); m_basebandSink->setSpectrum(&m_spectrumVis); m_basebandSink->moveToThread(m_thread); diff --git a/plugins/channelrx/wdsprx/wdsprx.cpp b/plugins/channelrx/wdsprx/wdsprx.cpp index 079fa17ba..86136645b 100644 --- a/plugins/channelrx/wdsprx/wdsprx.cpp +++ b/plugins/channelrx/wdsprx/wdsprx.cpp @@ -145,6 +145,7 @@ void WDSPRx::start() qDebug() << "WDSPRx::start"; m_thread = new QThread(); + m_thread->setObjectName("WDSPRx"); m_basebandSink = new WDSPRxBaseband(); m_basebandSink->setFifoLabel(QString("%1 [%2:%3]") .arg(m_channelId) diff --git a/plugins/channeltx/filesource/filesource.cpp b/plugins/channeltx/filesource/filesource.cpp index 551e90ea9..380df5bb4 100644 --- a/plugins/channeltx/filesource/filesource.cpp +++ b/plugins/channeltx/filesource/filesource.cpp @@ -59,6 +59,7 @@ FileSource::FileSource(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("FileSource"); m_basebandSource = new FileSourceBaseband(); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/channeltx/localsource/localsource.cpp b/plugins/channeltx/localsource/localsource.cpp index da3ca869d..1fefc231f 100644 --- a/plugins/channeltx/localsource/localsource.cpp +++ b/plugins/channeltx/localsource/localsource.cpp @@ -53,6 +53,7 @@ LocalSource::LocalSource(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("LocalSource"); m_basebandSource = new LocalSourceBaseband(); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/channeltx/localsource/localsourcesource.cpp b/plugins/channeltx/localsource/localsourcesource.cpp index 266abd0f2..e2ceb0158 100644 --- a/plugins/channeltx/localsource/localsourcesource.cpp +++ b/plugins/channeltx/localsource/localsourcesource.cpp @@ -26,7 +26,9 @@ LocalSourceSource::LocalSourceSource() : m_chunkSize(0), m_localSamplesIndex(0), m_localSamplesIndexOffset(0) -{} +{ + m_sinkWorkerThread.setObjectName("LocalSrcSrcWrk"); +} LocalSourceSource::~LocalSourceSource() {} diff --git a/plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp b/plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp index 4a96860d2..c5debfd21 100644 --- a/plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp +++ b/plugins/channeltx/mod802.15.4/ieee_802_15_4_mod.cpp @@ -60,6 +60,7 @@ IEEE_802_15_4_Mod::IEEE_802_15_4_Mod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("802_15_4_Mod"); m_basebandSource = new IEEE_802_15_4_ModBaseband(); m_basebandSource->setSpectrumSampleSink(&m_spectrumVis); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/channeltx/modais/aismod.cpp b/plugins/channeltx/modais/aismod.cpp index 27e3ab039..5f5649b4e 100644 --- a/plugins/channeltx/modais/aismod.cpp +++ b/plugins/channeltx/modais/aismod.cpp @@ -62,6 +62,7 @@ AISMod::AISMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("AISMod"); m_basebandSource = new AISModBaseband(); m_basebandSource->setSpectrumSampleSink(&m_spectrumVis); m_basebandSource->setChannel(this); diff --git a/plugins/channeltx/modam/ammod.cpp b/plugins/channeltx/modam/ammod.cpp index 1a2feba19..60a8c967e 100644 --- a/plugins/channeltx/modam/ammod.cpp +++ b/plugins/channeltx/modam/ammod.cpp @@ -116,6 +116,7 @@ void AMMod::start() qDebug("AMMod::start"); m_thread = new QThread(this); + m_thread->setObjectName("AMMod"); m_basebandSource = new AMModBaseband(); m_basebandSource->setInputFileStream(&m_ifstream); m_basebandSource->setChannel(this); diff --git a/plugins/channeltx/modatv/atvmod.cpp b/plugins/channeltx/modatv/atvmod.cpp index 87ab166c8..00e6055b7 100644 --- a/plugins/channeltx/modatv/atvmod.cpp +++ b/plugins/channeltx/modatv/atvmod.cpp @@ -62,6 +62,7 @@ ATVMod::ATVMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("ATVMod"); m_basebandSource = new ATVModBaseband(); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/channeltx/modchirpchat/chirpchatmod.cpp b/plugins/channeltx/modchirpchat/chirpchatmod.cpp index 1b5165244..475df317c 100644 --- a/plugins/channeltx/modchirpchat/chirpchatmod.cpp +++ b/plugins/channeltx/modchirpchat/chirpchatmod.cpp @@ -61,6 +61,7 @@ ChirpChatMod::ChirpChatMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("ChirpChatMod"); m_basebandSource = new ChirpChatModBaseband(); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/channeltx/moddatv/datvmod.cpp b/plugins/channeltx/moddatv/datvmod.cpp index 84c133720..2c8088864 100644 --- a/plugins/channeltx/moddatv/datvmod.cpp +++ b/plugins/channeltx/moddatv/datvmod.cpp @@ -63,6 +63,7 @@ DATVMod::DATVMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("DATVMod"); m_basebandSource = new DATVModBaseband(); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/channeltx/modfreedv/freedvmod.cpp b/plugins/channeltx/modfreedv/freedvmod.cpp index 3a7a242c7..6c6777e02 100644 --- a/plugins/channeltx/modfreedv/freedvmod.cpp +++ b/plugins/channeltx/modfreedv/freedvmod.cpp @@ -63,6 +63,7 @@ FreeDVMod::FreeDVMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("FreeDVMod"); m_basebandSource = new FreeDVModBaseband(); m_basebandSource->setSpectrumSampleSink(&m_spectrumVis); m_basebandSource->setInputFileStream(&m_ifstream); diff --git a/plugins/channeltx/modm17/m17mod.cpp b/plugins/channeltx/modm17/m17mod.cpp index 141ebc3fe..b69465e02 100644 --- a/plugins/channeltx/modm17/m17mod.cpp +++ b/plugins/channeltx/modm17/m17mod.cpp @@ -62,6 +62,7 @@ M17Mod::M17Mod(DeviceAPI *deviceAPI) : m_loopPacketTimer.setInterval(m_settings.m_loopPacketInterval*1000); m_thread = new QThread(this); + m_thread->setObjectName("M17Mod"); m_basebandSource = new M17ModBaseband(); m_basebandSource->setInputFileStream(&m_ifstream); m_basebandSource->setChannel(this); diff --git a/plugins/channeltx/modm17/m17modsource.cpp b/plugins/channeltx/modm17/m17modsource.cpp index 58aadd27d..888eab0e3 100644 --- a/plugins/channeltx/modm17/m17modsource.cpp +++ b/plugins/channeltx/modm17/m17modsource.cpp @@ -43,6 +43,7 @@ M17ModSource::M17ModSource() : m_preemphasisFilter(m_preemphasis*48000) { m_audioFifo.setLabel("M17ModSource.m_audioFifo"); + m_processorThread.setObjectName("M17ModSourceWrk"); m_feedbackAudioFifo.setLabel("M17ModSource.m_feedbackAudioFifo"); m_audioBuffer.resize(24000); m_audioBufferFill = 0; diff --git a/plugins/channeltx/modmeshcore/meshcoremod.cpp b/plugins/channeltx/modmeshcore/meshcoremod.cpp index 0a45a083e..b56a2a0f7 100644 --- a/plugins/channeltx/modmeshcore/meshcoremod.cpp +++ b/plugins/channeltx/modmeshcore/meshcoremod.cpp @@ -66,6 +66,7 @@ MeshcoreMod::MeshcoreMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("MeshcoreMod"); m_basebandSource = new MeshcoreModBaseband(); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/channeltx/modmeshtastic/meshtasticmod.cpp b/plugins/channeltx/modmeshtastic/meshtasticmod.cpp index 6840495d2..6c5304bdb 100644 --- a/plugins/channeltx/modmeshtastic/meshtasticmod.cpp +++ b/plugins/channeltx/modmeshtastic/meshtasticmod.cpp @@ -64,6 +64,7 @@ MeshtasticMod::MeshtasticMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("MeshtasticMod"); m_basebandSource = new MeshtasticModBaseband(); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/channeltx/modnfm/nfmmod.cpp b/plugins/channeltx/modnfm/nfmmod.cpp index 6a1fbc261..951e4e419 100644 --- a/plugins/channeltx/modnfm/nfmmod.cpp +++ b/plugins/channeltx/modnfm/nfmmod.cpp @@ -113,6 +113,7 @@ void NFMMod::start() qDebug("NFMMod::start"); m_thread = new QThread(this); + m_thread->setObjectName("NFMMod"); m_basebandSource = new NFMModBaseband(); m_basebandSource->setInputFileStream(&m_ifstream); m_basebandSource->setChannel(this); diff --git a/plugins/channeltx/modpacket/packetmod.cpp b/plugins/channeltx/modpacket/packetmod.cpp index b1dc4a224..f1daffecd 100644 --- a/plugins/channeltx/modpacket/packetmod.cpp +++ b/plugins/channeltx/modpacket/packetmod.cpp @@ -64,6 +64,7 @@ PacketMod::PacketMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("PacketMod"); m_basebandSource = new PacketModBaseband(); m_basebandSource->setSpectrumSampleSink(&m_spectrumVis); m_basebandSource->setChannel(this); diff --git a/plugins/channeltx/modpsk31/psk31mod.cpp b/plugins/channeltx/modpsk31/psk31mod.cpp index 4fdae2cdf..753c33892 100644 --- a/plugins/channeltx/modpsk31/psk31mod.cpp +++ b/plugins/channeltx/modpsk31/psk31mod.cpp @@ -60,6 +60,7 @@ PSK31::PSK31(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("PSK31"); m_basebandSource = new PSK31Baseband(); m_basebandSource->setSpectrumSampleSink(&m_spectrumVis); m_basebandSource->setChannel(this); diff --git a/plugins/channeltx/modrtty/rttymod.cpp b/plugins/channeltx/modrtty/rttymod.cpp index 9197e83e7..5e5af410d 100644 --- a/plugins/channeltx/modrtty/rttymod.cpp +++ b/plugins/channeltx/modrtty/rttymod.cpp @@ -60,6 +60,7 @@ RttyMod::RttyMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("RttyMod"); m_basebandSource = new RttyModBaseband(); m_basebandSource->setSpectrumSampleSink(&m_spectrumVis); m_basebandSource->setChannel(this); diff --git a/plugins/channeltx/modssb/ssbmod.cpp b/plugins/channeltx/modssb/ssbmod.cpp index 874acfa83..649e48f3e 100644 --- a/plugins/channeltx/modssb/ssbmod.cpp +++ b/plugins/channeltx/modssb/ssbmod.cpp @@ -65,6 +65,7 @@ SSBMod::SSBMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("SSBMod"); m_basebandSource = new SSBModBaseband(); m_basebandSource->setSpectrumSink(&m_spectrumVis); m_basebandSource->setInputFileStream(&m_ifstream); diff --git a/plugins/channeltx/modwfm/wfmmod.cpp b/plugins/channeltx/modwfm/wfmmod.cpp index 4c37b6d68..d2065548d 100644 --- a/plugins/channeltx/modwfm/wfmmod.cpp +++ b/plugins/channeltx/modwfm/wfmmod.cpp @@ -61,6 +61,7 @@ WFMMod::WFMMod(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("WFMMod"); m_basebandSource = new WFMModBaseband(); m_basebandSource->setInputFileStream(&m_ifstream); m_basebandSource->setChannel(this); diff --git a/plugins/channeltx/remotesource/remotesource.cpp b/plugins/channeltx/remotesource/remotesource.cpp index 7459bf27b..23a161504 100644 --- a/plugins/channeltx/remotesource/remotesource.cpp +++ b/plugins/channeltx/remotesource/remotesource.cpp @@ -57,6 +57,7 @@ RemoteSource::RemoteSource(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("RemoteSource"); m_basebandSource = new RemoteSourceBaseband(); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/channeltx/remotesource/remotesourcesource.cpp b/plugins/channeltx/remotesource/remotesourcesource.cpp index 05adf7db1..a500f1601 100644 --- a/plugins/channeltx/remotesource/remotesourcesource.cpp +++ b/plugins/channeltx/remotesource/remotesourcesource.cpp @@ -30,6 +30,7 @@ RemoteSourceSource::RemoteSourceSource() : m_nbUncorrectableErrors(0), m_channelSampleRate(48000) { + m_sourceWorkerThread.setObjectName("RmtSrcSrcWrk"); connect(&m_dataQueue, SIGNAL(dataBlockEnqueued()), this, SLOT(handleData()), Qt::QueuedConnection); m_cm256p = m_cm256.isInitialized() ? &m_cm256 : 0; m_currentMeta.init(); diff --git a/plugins/channeltx/udpsource/udpsource.cpp b/plugins/channeltx/udpsource/udpsource.cpp index 656a483d9..9838a3a19 100644 --- a/plugins/channeltx/udpsource/udpsource.cpp +++ b/plugins/channeltx/udpsource/udpsource.cpp @@ -50,6 +50,7 @@ UDPSource::UDPSource(DeviceAPI *deviceAPI) : setObjectName(m_channelId); m_thread = new QThread(this); + m_thread->setObjectName("UDPSource"); m_basebandSource = new UDPSourceBaseband(); m_basebandSource->setSpectrumSink(&m_spectrumVis); m_basebandSource->moveToThread(m_thread); diff --git a/plugins/feature/afc/afc.cpp b/plugins/feature/afc/afc.cpp index b697408e9..6c292bb14 100644 --- a/plugins/feature/afc/afc.cpp +++ b/plugins/feature/afc/afc.cpp @@ -95,6 +95,7 @@ void AFC::start() qDebug("AFC::start"); m_thread = new QThread(); + m_thread->setObjectName("AFC"); m_worker = new AFCWorker(getWebAPIAdapterInterface()); m_worker->moveToThread(m_thread); diff --git a/plugins/feature/ambe/ambeengine.cpp b/plugins/feature/ambe/ambeengine.cpp index ca8f66f61..03a9d4b8e 100644 --- a/plugins/feature/ambe/ambeengine.cpp +++ b/plugins/feature/ambe/ambeengine.cpp @@ -249,6 +249,7 @@ bool AMBEEngine::registerController(const std::string& deviceRef) m_controllers.push_back(AMBEController()); m_controllers.back().worker = worker; m_controllers.back().thread = new QThread(); + m_controllers.back().thread->setObjectName("AMBE:" + QString::fromStdString(deviceRef)); m_controllers.back().device = deviceRef; m_controllers.back().worker->moveToThread(m_controllers.back().thread); diff --git a/plugins/feature/aprs/aprs.cpp b/plugins/feature/aprs/aprs.cpp index 8e2f41af9..fc796b027 100644 --- a/plugins/feature/aprs/aprs.cpp +++ b/plugins/feature/aprs/aprs.cpp @@ -97,6 +97,7 @@ void APRS::start() { qDebug("APRS::start"); m_thread = new QThread(); + m_thread->setObjectName("APRS"); m_worker = new APRSWorker(this, m_webAPIAdapterInterface); m_worker->moveToThread(m_thread); diff --git a/plugins/feature/demodanalyzer/demodanalyzer.cpp b/plugins/feature/demodanalyzer/demodanalyzer.cpp index f94a717ed..e1e80baff 100644 --- a/plugins/feature/demodanalyzer/demodanalyzer.cpp +++ b/plugins/feature/demodanalyzer/demodanalyzer.cpp @@ -101,6 +101,7 @@ void DemodAnalyzer::start() qDebug("DemodAnalyzer::start"); m_thread = new QThread(); + m_thread->setObjectName("DemodAnalyzer"); m_worker = new DemodAnalyzerWorker(); m_worker->moveToThread(m_thread); diff --git a/plugins/feature/denoiser/denoiser.cpp b/plugins/feature/denoiser/denoiser.cpp index af2baa8f3..e4e242484 100644 --- a/plugins/feature/denoiser/denoiser.cpp +++ b/plugins/feature/denoiser/denoiser.cpp @@ -103,6 +103,7 @@ void Denoiser::start() qDebug("Denoiser::start"); m_thread = new QThread(); + m_thread->setObjectName("Denoiser"); m_worker = new DenoiserWorker(); m_worker->moveToThread(m_thread); diff --git a/plugins/feature/gs232controller/gs232controller.cpp b/plugins/feature/gs232controller/gs232controller.cpp index 4394ade07..d27d4bbd0 100644 --- a/plugins/feature/gs232controller/gs232controller.cpp +++ b/plugins/feature/gs232controller/gs232controller.cpp @@ -120,6 +120,7 @@ void GS232Controller::start() qDebug("GS232Controller::start"); m_thread = new QThread(); + m_thread->setObjectName("GS232Controller"); m_worker = new GS232ControllerWorker(this); m_worker->moveToThread(m_thread); QObject::connect(m_thread, &QThread::started, m_worker, &GS232ControllerWorker::startWork); diff --git a/plugins/feature/morsedecoder/morsedecoder.cpp b/plugins/feature/morsedecoder/morsedecoder.cpp index 69ab896ad..5616d0b02 100644 --- a/plugins/feature/morsedecoder/morsedecoder.cpp +++ b/plugins/feature/morsedecoder/morsedecoder.cpp @@ -100,6 +100,7 @@ void MorseDecoder::start() qDebug("MorseDecoder::start"); m_thread = new QThread(); + m_thread->setObjectName("MorseDecoder"); m_worker = new MorseDecoderWorker(); m_worker->moveToThread(m_thread); diff --git a/plugins/feature/pertester/pertester.cpp b/plugins/feature/pertester/pertester.cpp index 1155bba05..82564bec6 100644 --- a/plugins/feature/pertester/pertester.cpp +++ b/plugins/feature/pertester/pertester.cpp @@ -77,6 +77,7 @@ void PERTester::start() qDebug("PERTester::start"); m_thread = new QThread(); + m_thread->setObjectName("PERTester"); m_worker = new PERTesterWorker(); m_worker->moveToThread(m_thread); diff --git a/plugins/feature/remotecontrol/remotecontrol.cpp b/plugins/feature/remotecontrol/remotecontrol.cpp index c3a5c5d46..638f73963 100644 --- a/plugins/feature/remotecontrol/remotecontrol.cpp +++ b/plugins/feature/remotecontrol/remotecontrol.cpp @@ -54,6 +54,7 @@ void RemoteControl::start() qDebug() << "RemoteControl::start"; m_thread = new QThread(); + m_thread->setObjectName("RemoteControl"); m_worker = new RemoteControlWorker(); m_worker->moveToThread(m_thread); diff --git a/plugins/feature/rigctlserver/rigctlserver.cpp b/plugins/feature/rigctlserver/rigctlserver.cpp index 332f7895a..87febeba8 100644 --- a/plugins/feature/rigctlserver/rigctlserver.cpp +++ b/plugins/feature/rigctlserver/rigctlserver.cpp @@ -43,6 +43,7 @@ RigCtlServer::RigCtlServer(WebAPIAdapterInterface *webAPIAdapterInterface) : { qDebug("RigCtlServer::RigCtlServer: webAPIAdapterInterface: %p", webAPIAdapterInterface); setObjectName(m_featureId); + m_thread.setObjectName("RigCtlServerBB"); m_worker = new RigCtlServerWorker(webAPIAdapterInterface); m_worker->moveToThread(&m_thread); setState(StIdle); diff --git a/plugins/feature/satellitetracker/satellitetracker.cpp b/plugins/feature/satellitetracker/satellitetracker.cpp index a82232e7f..d2908a673 100644 --- a/plugins/feature/satellitetracker/satellitetracker.cpp +++ b/plugins/feature/satellitetracker/satellitetracker.cpp @@ -90,6 +90,7 @@ void SatelliteTracker::start() } m_thread = new QThread(); + m_thread->setObjectName("SatTracker"); m_worker = new SatelliteTrackerWorker(this, m_webAPIAdapterInterface); m_worker->moveToThread(m_thread); diff --git a/plugins/feature/sid/sid.cpp b/plugins/feature/sid/sid.cpp index 7617b54ff..74ebc7d83 100644 --- a/plugins/feature/sid/sid.cpp +++ b/plugins/feature/sid/sid.cpp @@ -71,6 +71,7 @@ void SIDMain::start() { qDebug("SIDMain::start"); m_thread = new QThread(); + m_thread->setObjectName("SIDMain"); m_worker = new SIDWorker(this, m_webAPIAdapterInterface); m_worker->moveToThread(m_thread); QObject::connect(m_thread, &QThread::started, m_worker, &SIDWorker::startWork); diff --git a/plugins/feature/simpleptt/simpleptt.cpp b/plugins/feature/simpleptt/simpleptt.cpp index 5d991e3da..7faf0dff3 100644 --- a/plugins/feature/simpleptt/simpleptt.cpp +++ b/plugins/feature/simpleptt/simpleptt.cpp @@ -81,6 +81,7 @@ void SimplePTT::start() qDebug("SimplePTT::start"); m_thread = new QThread(); + m_thread->setObjectName("SimplePTT"); m_worker = new SimplePTTWorker(getWebAPIAdapterInterface()); m_worker->moveToThread(m_thread); diff --git a/plugins/feature/startracker/startracker.cpp b/plugins/feature/startracker/startracker.cpp index 1fa53a1c4..eb601c5b2 100644 --- a/plugins/feature/startracker/startracker.cpp +++ b/plugins/feature/startracker/startracker.cpp @@ -106,6 +106,7 @@ void StarTracker::start() qDebug("StarTracker::start"); m_thread = new QThread(); + m_thread->setObjectName("StarTracker"); m_worker = new StarTrackerWorker(this, m_webAPIAdapterInterface); m_worker->moveToThread(m_thread); diff --git a/plugins/feature/vorlocalizer/vorlocalizer.cpp b/plugins/feature/vorlocalizer/vorlocalizer.cpp index 113d8ae3c..1398dea0d 100644 --- a/plugins/feature/vorlocalizer/vorlocalizer.cpp +++ b/plugins/feature/vorlocalizer/vorlocalizer.cpp @@ -99,6 +99,7 @@ void VORLocalizer::start() qDebug("VORLocalizer::start"); m_thread = new QThread(); + m_thread->setObjectName("VORLocalizer"); m_worker = new VorLocalizerWorker(getWebAPIAdapterInterface()); m_worker->moveToThread(m_thread); diff --git a/plugins/samplemimo/audiocatsiso/audiocatsiso.cpp b/plugins/samplemimo/audiocatsiso/audiocatsiso.cpp index 70d295ae1..f2f08092d 100644 --- a/plugins/samplemimo/audiocatsiso/audiocatsiso.cpp +++ b/plugins/samplemimo/audiocatsiso/audiocatsiso.cpp @@ -131,6 +131,7 @@ bool AudioCATSISO::startRx() audioDeviceManager->addAudioSource(&m_inputFifo, getInputMessageQueue(), m_rxAudioDeviceIndex); m_inputWorkerThread = new QThread(); + m_inputWorkerThread->setObjectName(QString("AudCATrx:%1").arg(m_rxAudioDeviceIndex)); m_inputWorker = new AudioCATInputWorker(&m_sampleMIFifo, &m_inputFifo); m_inputWorker->moveToThread(m_inputWorkerThread); @@ -147,6 +148,7 @@ bool AudioCATSISO::startRx() qDebug() << "AudioCATSISO::startRx: start CAT"; m_catWorkerThread = new QThread(); + m_catWorkerThread->setObjectName(QString("AudCATwk:%1").arg(m_rxAudioDeviceIndex)); m_catWorker = new AudioCATSISOCATWorker(); m_catWorker->moveToThread(m_catWorkerThread); @@ -193,6 +195,7 @@ bool AudioCATSISO::startTx() audioDeviceManager->addAudioSink(&m_outputFifo, getInputMessageQueue(), m_txAudioDeviceIndex); m_outputWorkerThread = new QThread(); + m_outputWorkerThread->setObjectName(QString("AudCATtx:%1").arg(m_txAudioDeviceIndex)); m_outputWorker = new AudioCATOutputWorker(&m_sampleMOFifo, &m_outputFifo); m_outputWorker->moveToThread(m_outputWorkerThread); diff --git a/plugins/samplemimo/bladerf2mimo/bladerf2mithread.cpp b/plugins/samplemimo/bladerf2mimo/bladerf2mithread.cpp index c88938886..d4f2df51b 100644 --- a/plugins/samplemimo/bladerf2mimo/bladerf2mithread.cpp +++ b/plugins/samplemimo/bladerf2mimo/bladerf2mithread.cpp @@ -31,6 +31,7 @@ BladeRF2MIThread::BladeRF2MIThread(struct bladerf* dev, QObject* parent) : m_fcPos(0), m_iqOrder(true) { + setObjectName("BladeRF2MI"); qDebug("BladeRF2MIThread::BladeRF2MIThread"); m_buf = new qint16[2*DeviceBladeRF2::blockSize*2]; diff --git a/plugins/samplemimo/bladerf2mimo/bladerf2mothread.cpp b/plugins/samplemimo/bladerf2mimo/bladerf2mothread.cpp index 4c9591e8b..365d2075a 100644 --- a/plugins/samplemimo/bladerf2mimo/bladerf2mothread.cpp +++ b/plugins/samplemimo/bladerf2mimo/bladerf2mothread.cpp @@ -28,6 +28,7 @@ BladeRF2MOThread::BladeRF2MOThread(struct bladerf* dev, QObject* parent) : m_log2Interp(0), m_fcPos(0) { + setObjectName("BladeRF2MO"); qDebug("BladeRF2MOThread::BladeRF2MOThread"); m_buf = new qint16[2*DeviceBladeRF2::blockSize*2]; } diff --git a/plugins/samplemimo/limesdrmimo/limesdrmithread.cpp b/plugins/samplemimo/limesdrmimo/limesdrmithread.cpp index c4d15861d..46e244a48 100644 --- a/plugins/samplemimo/limesdrmimo/limesdrmithread.cpp +++ b/plugins/samplemimo/limesdrmimo/limesdrmithread.cpp @@ -27,6 +27,7 @@ LimeSDRMIThread::LimeSDRMIThread(lms_stream_t* stream0, lms_stream_t* stream1, Q m_sampleFifo(nullptr), m_iqOrder(true) { + setObjectName("LimeSDRMI"); qDebug("LimeSDRMIThread::LimeSDRMIThread"); for (unsigned int i = 0; i < 2; i++) { diff --git a/plugins/samplemimo/plutosdrmimo/plutosdrmithread.cpp b/plugins/samplemimo/plutosdrmimo/plutosdrmithread.cpp index bcadfee9d..39c841579 100644 --- a/plugins/samplemimo/plutosdrmimo/plutosdrmithread.cpp +++ b/plugins/samplemimo/plutosdrmimo/plutosdrmithread.cpp @@ -29,6 +29,7 @@ PlutoSDRMIThread::PlutoSDRMIThread(DevicePlutoSDRBox* plutoBox, QObject* parent) m_fcPos(0), m_iqOrder(true) { + setObjectName("PlutoSDRMI"); qDebug("PlutoSDRMIThread::PlutoSDRMIThread"); m_buf[0] = new qint16[2*m_plutoSDRBlockSizeSamples]; m_buf[1] = new qint16[2*m_plutoSDRBlockSizeSamples]; diff --git a/plugins/samplemimo/plutosdrmimo/plutosdrmothread.cpp b/plugins/samplemimo/plutosdrmimo/plutosdrmothread.cpp index 7a2014e2c..baf7cebb0 100644 --- a/plugins/samplemimo/plutosdrmimo/plutosdrmothread.cpp +++ b/plugins/samplemimo/plutosdrmimo/plutosdrmothread.cpp @@ -29,6 +29,7 @@ PlutoSDRMOThread::PlutoSDRMOThread(DevicePlutoSDRBox* plutoBox, QObject* parent) m_log2Interp(0), m_fcPos(0) { + setObjectName("PlutoSDRMO"); qDebug("PlutoSDRMOThread::PlutoSDRMOThread"); m_buf[0] = new qint16[2*PlutoSDRMIMOSettings::m_plutoSDRBlockSizeSamples]; m_buf[1] = new qint16[2*PlutoSDRMIMOSettings::m_plutoSDRBlockSizeSamples]; diff --git a/plugins/samplemimo/testmi/testmi.cpp b/plugins/samplemimo/testmi/testmi.cpp index 7934a9eb6..8feade0e7 100644 --- a/plugins/samplemimo/testmi/testmi.cpp +++ b/plugins/samplemimo/testmi/testmi.cpp @@ -95,11 +95,13 @@ bool TestMI::startRx() qDebug("TestMI::startRx"); m_testSourceWorkers.push_back(new TestMIWorker(&m_sampleMIFifo, 0)); m_testSourceWorkerThreads.push_back(new QThread()); + m_testSourceWorkerThreads.back()->setObjectName("TestMI:0"); m_testSourceWorkers.back()->moveToThread(m_testSourceWorkerThreads.back()); m_testSourceWorkers.back()->setSamplerate(m_settings.m_streams[0].m_sampleRate); m_testSourceWorkers.push_back(new TestMIWorker(&m_sampleMIFifo, 1)); m_testSourceWorkerThreads.push_back(new QThread()); + m_testSourceWorkerThreads.back()->setObjectName("TestMI:1"); m_testSourceWorkers.back()->moveToThread(m_testSourceWorkerThreads.back()); m_testSourceWorkers.back()->setSamplerate(m_settings.m_streams[1].m_sampleRate); diff --git a/plugins/samplemimo/testmosync/testmosync.cpp b/plugins/samplemimo/testmosync/testmosync.cpp index b316b3c47..e8bd2f027 100644 --- a/plugins/samplemimo/testmosync/testmosync.cpp +++ b/plugins/samplemimo/testmosync/testmosync.cpp @@ -74,6 +74,7 @@ bool TestMOSync::startTx() qDebug("TestMOSync::startTx"); m_sinkWorkerThread = new QThread(); + m_sinkWorkerThread->setObjectName("TestMOSync"); m_sinkWorker = new TestMOSyncWorker(); m_sinkWorker->moveToThread(m_sinkWorkerThread); diff --git a/plugins/samplemimo/xtrxmimo/xtrxmithread.cpp b/plugins/samplemimo/xtrxmimo/xtrxmithread.cpp index 5080c3cac..060b0fe58 100644 --- a/plugins/samplemimo/xtrxmimo/xtrxmithread.cpp +++ b/plugins/samplemimo/xtrxmimo/xtrxmithread.cpp @@ -30,6 +30,7 @@ XTRXMIThread::XTRXMIThread(struct xtrx_dev *dev, QObject* parent) : m_sampleFifo(nullptr), m_iqOrder(true) { + setObjectName("XTRXMI"); qDebug("XTRXMIThread::XTRXMIThread"); for (unsigned int i = 0; i < 2; i++) { diff --git a/plugins/samplemimo/xtrxmimo/xtrxmothread.cpp b/plugins/samplemimo/xtrxmimo/xtrxmothread.cpp index dd011d06c..5ab258085 100644 --- a/plugins/samplemimo/xtrxmimo/xtrxmothread.cpp +++ b/plugins/samplemimo/xtrxmimo/xtrxmothread.cpp @@ -29,6 +29,7 @@ XTRXMOThread::XTRXMOThread(struct xtrx_dev *dev, QObject* parent) : m_dev(dev), m_sampleFifo(nullptr) { + setObjectName("XTRXMO"); qDebug("XTRXMOThread::XTRXMOThread"); m_buf = new qint16[2*DeviceXTRX::blockSize*2]; std::fill(m_buf, m_buf + 2*DeviceXTRX::blockSize*2, 0); diff --git a/plugins/samplesink/aaroniartsaoutput/aaroniartsaoutput.cpp b/plugins/samplesink/aaroniartsaoutput/aaroniartsaoutput.cpp index 1f556aa2d..383507d8b 100644 --- a/plugins/samplesink/aaroniartsaoutput/aaroniartsaoutput.cpp +++ b/plugins/samplesink/aaroniartsaoutput/aaroniartsaoutput.cpp @@ -93,6 +93,7 @@ bool AaroniaRTSAOutput::start() qDebug() << "AaroniaRTSAOutput::start"; m_workerThread = new QThread(); + m_workerThread->setObjectName("AaroniaRTSAOut"); m_worker = new AaroniaRTSAOutputWorker(&m_sampleSourceFifo); m_worker->moveToThread(m_workerThread); diff --git a/plugins/samplesink/audiooutput/audiooutput.cpp b/plugins/samplesink/audiooutput/audiooutput.cpp index 2978c1f5e..fd99ad57c 100644 --- a/plugins/samplesink/audiooutput/audiooutput.cpp +++ b/plugins/samplesink/audiooutput/audiooutput.cpp @@ -85,6 +85,7 @@ bool AudioOutput::start() audioDeviceManager->addAudioSink(&m_audioFifo, getInputMessageQueue(), m_audioDeviceIndex); m_workerThread = new QThread(); + m_workerThread->setObjectName("AudioOutput:wrk"); m_worker = new AudioOutputWorker(&m_sampleSourceFifo, &m_audioFifo); m_worker->moveToThread(m_workerThread); diff --git a/plugins/samplesink/bladerf1output/bladerf1outputthread.cpp b/plugins/samplesink/bladerf1output/bladerf1outputthread.cpp index 922bc7c46..6da2f40f8 100644 --- a/plugins/samplesink/bladerf1output/bladerf1outputthread.cpp +++ b/plugins/samplesink/bladerf1output/bladerf1outputthread.cpp @@ -30,6 +30,7 @@ Bladerf1OutputThread::Bladerf1OutputThread(struct bladerf* dev, SampleSourceFifo m_sampleFifo(sampleFifo), m_log2Interp(0) { + setObjectName("Bladerf1Output"); std::fill(m_buf, m_buf + 2*BLADERFOUTPUT_BLOCKSIZE, 0); } diff --git a/plugins/samplesink/bladerf2output/bladerf2outputthread.cpp b/plugins/samplesink/bladerf2output/bladerf2outputthread.cpp index 3869d3274..fd4f4c5d7 100644 --- a/plugins/samplesink/bladerf2output/bladerf2outputthread.cpp +++ b/plugins/samplesink/bladerf2output/bladerf2outputthread.cpp @@ -27,6 +27,7 @@ BladeRF2OutputThread::BladeRF2OutputThread(struct bladerf* dev, unsigned int nbT m_dev(dev), m_nbChannels(nbTxChannels) { + setObjectName("BladeRF2Output"); qDebug("BladeRF2OutputThread::BladeRF2OutputThread"); m_channels = new Channel[nbTxChannels]; m_buf = new qint16[2*DeviceBladeRF2::blockSize*nbTxChannels]; diff --git a/plugins/samplesink/fileoutput/fileoutput.cpp b/plugins/samplesink/fileoutput/fileoutput.cpp index f9544c0f2..f9a013805 100644 --- a/plugins/samplesink/fileoutput/fileoutput.cpp +++ b/plugins/samplesink/fileoutput/fileoutput.cpp @@ -49,6 +49,7 @@ FileOutput::FileOutput(DeviceAPI *deviceAPI) : m_deviceDescription("FileOutput"), m_masterTimer(deviceAPI->getMasterTimer()) { + m_fileOutputWorkerThread.setObjectName("FileOutputWrk"); m_deviceAPI->setNbSinkStreams(1); m_networkManager = new QNetworkAccessManager(); } diff --git a/plugins/samplesink/hackrfoutput/hackrfoutputthread.cpp b/plugins/samplesink/hackrfoutput/hackrfoutputthread.cpp index 82d3076e0..fd182ae62 100644 --- a/plugins/samplesink/hackrfoutput/hackrfoutputthread.cpp +++ b/plugins/samplesink/hackrfoutput/hackrfoutputthread.cpp @@ -30,6 +30,7 @@ HackRFOutputThread::HackRFOutputThread(hackrf_device* dev, SampleSourceFifo* sam m_log2Interp(0), m_fcPos(2) { + setObjectName("HackRFOutput"); std::fill(m_buf, m_buf + 2*HACKRF_BLOCKSIZE, 0); } diff --git a/plugins/samplesink/limesdroutput/limesdroutputthread.cpp b/plugins/samplesink/limesdroutput/limesdroutputthread.cpp index e7bb34219..f07901fb3 100644 --- a/plugins/samplesink/limesdroutput/limesdroutputthread.cpp +++ b/plugins/samplesink/limesdroutput/limesdroutputthread.cpp @@ -29,6 +29,7 @@ LimeSDROutputThread::LimeSDROutputThread(lms_stream_t* stream, SampleSourceFifo* m_sampleFifo(sampleFifo), m_log2Interp(0) { + setObjectName("LimeSDROutput"); std::fill(m_buf, m_buf + 2*DeviceLimeSDR::blockSize, 0); } diff --git a/plugins/samplesink/plutosdroutput/plutosdroutputthread.cpp b/plugins/samplesink/plutosdroutput/plutosdroutputthread.cpp index 6fe5a5e30..0b2edd286 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutputthread.cpp +++ b/plugins/samplesink/plutosdroutput/plutosdroutputthread.cpp @@ -27,6 +27,7 @@ PlutoSDROutputThread::PlutoSDROutputThread(uint32_t blocksizeSamples, DevicePlut m_sampleFifo(sampleFifo), m_log2Interp(0) { + setObjectName("PlutoSDROutput"); m_buf = new qint16[blocksizeSamples*2]; } diff --git a/plugins/samplesink/remoteoutput/remoteoutput.cpp b/plugins/samplesink/remoteoutput/remoteoutput.cpp index e39eb9218..34a22ae8b 100644 --- a/plugins/samplesink/remoteoutput/remoteoutput.cpp +++ b/plugins/samplesink/remoteoutput/remoteoutput.cpp @@ -50,6 +50,7 @@ RemoteOutput::RemoteOutput(DeviceAPI *deviceAPI) : m_settings(), m_masterTimer(deviceAPI->getMasterTimer()) { + m_remoteOutputWorkerThread.setObjectName("RemoteOutputWrk"); m_deviceAPI->setNbSinkStreams(1); m_networkManager = new QNetworkAccessManager(); QObject::connect( diff --git a/plugins/samplesink/remoteoutput/udpsinkfec.cpp b/plugins/samplesink/remoteoutput/udpsinkfec.cpp index 2de770f08..4f9b40b9c 100644 --- a/plugins/samplesink/remoteoutput/udpsinkfec.cpp +++ b/plugins/samplesink/remoteoutput/udpsinkfec.cpp @@ -46,6 +46,7 @@ UDPSinkFEC::UDPSinkFEC() : m_currentMetaFEC.init(); m_senderThread = new QThread(this); + m_senderThread->setObjectName("UDPSinkFEC"); m_remoteOutputSender = new RemoteOutputSender(); m_remoteOutputSender->moveToThread(m_senderThread); } diff --git a/plugins/samplesink/soapysdroutput/soapysdroutputthread.cpp b/plugins/samplesink/soapysdroutput/soapysdroutputthread.cpp index 24663b40d..091d37457 100644 --- a/plugins/samplesink/soapysdroutput/soapysdroutputthread.cpp +++ b/plugins/samplesink/soapysdroutput/soapysdroutputthread.cpp @@ -36,6 +36,7 @@ SoapySDROutputThread::SoapySDROutputThread(SoapySDR::Device* dev, unsigned int n m_errors(0), m_consecutiveErrors(0) { + setObjectName("SoapySDROutput"); qDebug("SoapySDROutputThread::SoapySDROutputThread"); m_channels = new Channel[nbTxChannels]; } diff --git a/plugins/samplesink/testsink/testsinkoutput.cpp b/plugins/samplesink/testsink/testsinkoutput.cpp index 0fc27f2ed..51dab516b 100644 --- a/plugins/samplesink/testsink/testsinkoutput.cpp +++ b/plugins/samplesink/testsink/testsinkoutput.cpp @@ -72,6 +72,7 @@ bool TestSinkOutput::start() qDebug() << "TestSinkOutput::start"; m_testSinkWorkerThread = new QThread(); + m_testSinkWorkerThread->setObjectName("TestSinkOutput"); m_testSinkWorker = new TestSinkWorker(&m_sampleSourceFifo); m_testSinkWorker->moveToThread(m_testSinkWorkerThread); diff --git a/plugins/samplesink/usrpoutput/usrpoutputthread.cpp b/plugins/samplesink/usrpoutput/usrpoutputthread.cpp index 2c9bcc20e..ceac5c6f4 100644 --- a/plugins/samplesink/usrpoutput/usrpoutputthread.cpp +++ b/plugins/samplesink/usrpoutput/usrpoutputthread.cpp @@ -36,6 +36,7 @@ USRPOutputThread::USRPOutputThread(uhd::tx_streamer::sptr stream, size_t bufSamp m_sampleFifo(sampleFifo), m_log2Interp(0) { + setObjectName("USRPOutput"); // *2 as samples are I+Q m_buf = new qint16[2 * bufSamples]; std::fill(m_buf, m_buf + 2 * bufSamples, 0); diff --git a/plugins/samplesink/xtrxoutput/xtrxoutputthread.cpp b/plugins/samplesink/xtrxoutput/xtrxoutputthread.cpp index ce9adc4b8..9f92e91c0 100644 --- a/plugins/samplesink/xtrxoutput/xtrxoutputthread.cpp +++ b/plugins/samplesink/xtrxoutput/xtrxoutputthread.cpp @@ -31,6 +31,7 @@ XTRXOutputThread::XTRXOutputThread(struct xtrx_dev *dev, unsigned int nbChannels m_nbChannels(nbChannels), m_uniqueChannelIndex(uniqueChannelIndex) { + setObjectName("XTRXOutput"); qDebug("XTRXOutputThread::XTRXOutputThread: nbChannels: %u uniqueChannelIndex: %u", nbChannels, uniqueChannelIndex); m_channels = new Channel[2]; } diff --git a/plugins/samplesource/aaroniartsainput/aaroniartsainput.cpp b/plugins/samplesource/aaroniartsainput/aaroniartsainput.cpp index 93ed2382c..c5383c59f 100644 --- a/plugins/samplesource/aaroniartsainput/aaroniartsainput.cpp +++ b/plugins/samplesource/aaroniartsainput/aaroniartsainput.cpp @@ -101,6 +101,7 @@ bool AaroniaRTSAInput::start() } m_aaroniaRTSAWorkerThread = new QThread(); + m_aaroniaRTSAWorkerThread->setObjectName("AaroniaRTSAIn"); m_aaroniaRTSAWorker = new AaroniaRTSAInputWorker(&m_sampleFifo); m_aaroniaRTSAWorker->setInputMessageQueue(getInputMessageQueue()); m_aaroniaRTSAWorker->moveToThread(m_aaroniaRTSAWorkerThread); diff --git a/plugins/samplesource/airspy/airspyinput.cpp b/plugins/samplesource/airspy/airspyinput.cpp index 2941db548..97677a3d8 100644 --- a/plugins/samplesource/airspy/airspyinput.cpp +++ b/plugins/samplesource/airspy/airspyinput.cpp @@ -206,6 +206,7 @@ bool AirspyInput::start() } m_airspyWorkerThread = new QThread(); + m_airspyWorkerThread->setObjectName("AirspyInput"); m_airspyWorker = new AirspyWorker(m_dev, &m_sampleFifo); m_airspyWorker->moveToThread(m_airspyWorkerThread); diff --git a/plugins/samplesource/airspyhf/airspyhfinput.cpp b/plugins/samplesource/airspyhf/airspyhfinput.cpp index d8c8e6aa4..592026dd0 100644 --- a/plugins/samplesource/airspyhf/airspyhfinput.cpp +++ b/plugins/samplesource/airspyhf/airspyhfinput.cpp @@ -180,6 +180,7 @@ bool AirspyHFInput::start() } m_airspyHFWorkerThread = new QThread(); + m_airspyHFWorkerThread->setObjectName("AirspyHFInput"); m_airspyHFWorker = new AirspyHFWorker(m_dev, &m_sampleFifo, &m_replayBuffer); m_airspyHFWorker->moveToThread(m_airspyHFWorkerThread); int sampleRateIndex = m_settings.m_devSampleRateIndex; diff --git a/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp b/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp index 7b1647fde..7dad3df00 100644 --- a/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp +++ b/plugins/samplesource/androidsdrdriverinput/androidsdrdriverinput.cpp @@ -49,6 +49,7 @@ AndroidSDRDriverInput::AndroidSDRDriverInput(DeviceAPI *deviceAPI) : m_androidSDRDriverInputTCPPHandler(nullptr), m_deviceDescription("AndroidSDRDriverInput") { + m_thread.setObjectName("AndroidSDRBB"); m_sampleFifo.setLabel(m_deviceDescription); m_sampleFifo.setSize(48000 * 8); m_androidSDRDriverInputTCPPHandler = new AndroidSDRDriverInputTCPHandler(&m_sampleFifo, m_deviceAPI); diff --git a/plugins/samplesource/audioinput/audioinput.cpp b/plugins/samplesource/audioinput/audioinput.cpp index ca0e8744c..7c0d81934 100644 --- a/plugins/samplesource/audioinput/audioinput.cpp +++ b/plugins/samplesource/audioinput/audioinput.cpp @@ -107,6 +107,7 @@ bool AudioInput::start() audioDeviceManager->addAudioSource(&m_fifo, getInputMessageQueue(), m_audioDeviceIndex); m_workerThread = new QThread(); + m_workerThread->setObjectName("AudioInput"); m_worker = new AudioInputWorker(&m_sampleFifo, &m_fifo); m_worker->moveToThread(m_workerThread); diff --git a/plugins/samplesource/bladerf1input/bladerf1inputthread.cpp b/plugins/samplesource/bladerf1input/bladerf1inputthread.cpp index 58d393d0b..eff99ae50 100644 --- a/plugins/samplesource/bladerf1input/bladerf1inputthread.cpp +++ b/plugins/samplesource/bladerf1input/bladerf1inputthread.cpp @@ -37,6 +37,7 @@ Bladerf1InputThread::Bladerf1InputThread(struct bladerf* dev, SampleSinkFifo* sa m_fcPos(0), m_iqOrder(true) { + setObjectName("Bladerf1Input"); std::fill(m_buf, m_buf + 2*BLADERF_BLOCKSIZE, 0); } diff --git a/plugins/samplesource/bladerf2input/bladerf2inputthread.cpp b/plugins/samplesource/bladerf2input/bladerf2inputthread.cpp index 34ba363fb..36b77b346 100644 --- a/plugins/samplesource/bladerf2input/bladerf2inputthread.cpp +++ b/plugins/samplesource/bladerf2input/bladerf2inputthread.cpp @@ -26,6 +26,7 @@ BladeRF2InputThread::BladeRF2InputThread(struct bladerf* dev, unsigned int nbRxC m_nbChannels(nbRxChannels), m_iqOrder(true) { + setObjectName("BladeRF2Input"); qDebug("BladeRF2InputThread::BladeRF2InputThread"); m_channels = new Channel[nbRxChannels]; diff --git a/plugins/samplesource/fcdpro/fcdprothread.cpp b/plugins/samplesource/fcdpro/fcdprothread.cpp index a3c16600d..1438b15c5 100644 --- a/plugins/samplesource/fcdpro/fcdprothread.cpp +++ b/plugins/samplesource/fcdpro/fcdprothread.cpp @@ -40,6 +40,7 @@ FCDProThread::FCDProThread(SampleSinkFifo* sampleFifo, AudioFifo *fcdFIFO, QObje m_convertBuffer(fcd_traits::convBufSize), m_sampleFifo(sampleFifo) { + setObjectName("FCDPro"); start(); } diff --git a/plugins/samplesource/fcdproplus/fcdproplusthread.cpp b/plugins/samplesource/fcdproplus/fcdproplusthread.cpp index 072f74005..3de662d46 100644 --- a/plugins/samplesource/fcdproplus/fcdproplusthread.cpp +++ b/plugins/samplesource/fcdproplus/fcdproplusthread.cpp @@ -40,6 +40,7 @@ FCDProPlusThread::FCDProPlusThread(SampleSinkFifo* sampleFifo, AudioFifo *fcdFIF m_convertBuffer(fcd_traits::convBufSize), m_sampleFifo(sampleFifo) { + setObjectName("FCDProPlus"); start(); } diff --git a/plugins/samplesource/fileinput/fileinput.cpp b/plugins/samplesource/fileinput/fileinput.cpp index eca61566e..4f1113aad 100644 --- a/plugins/samplesource/fileinput/fileinput.cpp +++ b/plugins/samplesource/fileinput/fileinput.cpp @@ -64,6 +64,7 @@ FileInput::FileInput(DeviceAPI *deviceAPI) : m_recordLengthMuSec(0), m_startingTimeStamp(0) { + m_fileInputWorkerThread.setObjectName("FileInputWrk"); m_sampleFifo.setLabel(m_deviceDescription); m_deviceAPI->setNbSourceStreams(1); qDebug("FileInput::FileInput: device source engine: %p", m_deviceAPI->getDeviceSourceEngine()); diff --git a/plugins/samplesource/fobos/fobosinput.cpp b/plugins/samplesource/fobos/fobosinput.cpp index 291d857ba..b043d4cf7 100644 --- a/plugins/samplesource/fobos/fobosinput.cpp +++ b/plugins/samplesource/fobos/fobosinput.cpp @@ -125,6 +125,7 @@ bool FOBOSInput::start() } m_workerThread = new QThread(); + m_workerThread->setObjectName("FOBOSInput"); m_worker = new FOBOSWorker(&m_sampleFifo); m_worker->moveToThread(m_workerThread); diff --git a/plugins/samplesource/hackrfinput/hackrfinputthread.cpp b/plugins/samplesource/hackrfinput/hackrfinputthread.cpp index 54d27c870..2fb18f13d 100644 --- a/plugins/samplesource/hackrfinput/hackrfinputthread.cpp +++ b/plugins/samplesource/hackrfinput/hackrfinputthread.cpp @@ -34,6 +34,7 @@ HackRFInputThread::HackRFInputThread(hackrf_device* dev, SampleSinkFifo* sampleF m_fcPos(0), m_iqOrder(true) { + setObjectName("HackRFInput"); std::fill(m_buf, m_buf + 2*HACKRF_BLOCKSIZE, 0); } diff --git a/plugins/samplesource/kiwisdr/kiwisdrinput.cpp b/plugins/samplesource/kiwisdr/kiwisdrinput.cpp index 8aec9769c..702359d7a 100644 --- a/plugins/samplesource/kiwisdr/kiwisdrinput.cpp +++ b/plugins/samplesource/kiwisdr/kiwisdrinput.cpp @@ -103,6 +103,7 @@ bool KiwiSDRInput::start() } m_kiwiSDRWorkerThread = new QThread(); + m_kiwiSDRWorkerThread->setObjectName("KiwiSDRInput"); m_kiwiSDRWorker = new KiwiSDRWorker(&m_sampleFifo); m_kiwiSDRWorker->setInputMessageQueue(getInputMessageQueue()); m_kiwiSDRWorker->moveToThread(m_kiwiSDRWorkerThread); diff --git a/plugins/samplesource/perseus/perseusinput.cpp b/plugins/samplesource/perseus/perseusinput.cpp index fb27c2715..a5367533a 100644 --- a/plugins/samplesource/perseus/perseusinput.cpp +++ b/plugins/samplesource/perseus/perseusinput.cpp @@ -88,6 +88,7 @@ bool PerseusInput::start() // start / stop streaming is done in the thread. m_perseusWorkerThread = new QThread(); + m_perseusWorkerThread->setObjectName("PerseusInput"); m_perseusWorker = new PerseusWorker(m_perseusDescriptor, &m_sampleFifo); m_perseusWorker->moveToThread(m_perseusWorkerThread); qDebug("PerseusInput::start: worker created"); diff --git a/plugins/samplesource/plutosdrinput/plutosdrinputthread.cpp b/plugins/samplesource/plutosdrinput/plutosdrinputthread.cpp index 2a38ed5c5..05bfc61ad 100644 --- a/plugins/samplesource/plutosdrinput/plutosdrinputthread.cpp +++ b/plugins/samplesource/plutosdrinput/plutosdrinputthread.cpp @@ -33,6 +33,7 @@ PlutoSDRInputThread::PlutoSDRInputThread(uint32_t blocksizeSamples, DevicePlutoS m_phasor(0), m_iqOrder(true) { + setObjectName("PlutoSDRInput"); m_buf = new qint16[blocksizeSamples*2]; // (I,Q) -> 2 * int16_t m_bufConv = new qint16[blocksizeSamples*2]; // (I,Q) -> 2 * int16_t } diff --git a/plugins/samplesource/remotetcpinput/remotetcpinput.cpp b/plugins/samplesource/remotetcpinput/remotetcpinput.cpp index 9b90f0fad..5f1c9d894 100644 --- a/plugins/samplesource/remotetcpinput/remotetcpinput.cpp +++ b/plugins/samplesource/remotetcpinput/remotetcpinput.cpp @@ -58,6 +58,7 @@ RemoteTCPInput::RemoteTCPInput(DeviceAPI *deviceAPI) : m_azimuth(std::numeric_limits::quiet_NaN()), m_elevation(std::numeric_limits::quiet_NaN()) { + m_thread.setObjectName("RemoteTCPInBB"); m_sampleFifo.setLabel(m_deviceDescription); m_sampleFifo.setSize(48000 * 8); m_remoteInputTCPPHandler = new RemoteTCPInputTCPHandler(&m_sampleFifo, m_deviceAPI, &m_replayBuffer); diff --git a/plugins/samplesource/rtlsdr/rtlsdrthread.cpp b/plugins/samplesource/rtlsdr/rtlsdrthread.cpp index db1cc1eec..a4c0a05ff 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrthread.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrthread.cpp @@ -38,6 +38,7 @@ RTLSDRThread::RTLSDRThread(rtlsdr_dev_t* dev, SampleSinkFifo* sampleFifo, Replay m_sampleFifo(sampleFifo), m_replayBuffer(replayBuffer) { + setObjectName("RTLSDR"); applySettings(settings, QStringList(), true); connect(&m_inputMessageQueue, &MessageQueue::messageEnqueued, this, &RTLSDRThread::handleInputMessages); } diff --git a/plugins/samplesource/sdrplay/sdrplaythread.cpp b/plugins/samplesource/sdrplay/sdrplaythread.cpp index ce35a8baa..e47b1ff35 100644 --- a/plugins/samplesource/sdrplay/sdrplaythread.cpp +++ b/plugins/samplesource/sdrplay/sdrplaythread.cpp @@ -31,6 +31,7 @@ SDRPlayThread::SDRPlayThread(mirisdr_dev_t* dev, SampleSinkFifo* sampleFifo, QOb m_fcPos(0), m_iqOrder(true) { + setObjectName("SDRPlay"); } SDRPlayThread::~SDRPlayThread() diff --git a/plugins/samplesource/sigmffileinput/sigmffileinput.cpp b/plugins/samplesource/sigmffileinput/sigmffileinput.cpp index d4a893cb9..f307dc75c 100644 --- a/plugins/samplesource/sigmffileinput/sigmffileinput.cpp +++ b/plugins/samplesource/sigmffileinput/sigmffileinput.cpp @@ -64,6 +64,7 @@ SigMFFileInput::SigMFFileInput(DeviceAPI *deviceAPI) : m_settings() { m_sampleFifo.setLabel(m_deviceDescription); + m_fileInputWorkerThread.setObjectName("SigMFInputWrk"); m_deviceAPI->setNbSourceStreams(1); qDebug("SigMFFileInput::SigMFFileInput: device source engine: %p", m_deviceAPI->getDeviceSourceEngine()); qDebug("SigMFFileInput::SigMFFileInput: device source engine message queue: %p", m_deviceAPI->getDeviceEngineInputMessageQueue()); diff --git a/plugins/samplesource/soapysdrinput/soapysdrinputthread.cpp b/plugins/samplesource/soapysdrinput/soapysdrinputthread.cpp index a1296c7d3..1b0aa839c 100644 --- a/plugins/samplesource/soapysdrinput/soapysdrinputthread.cpp +++ b/plugins/samplesource/soapysdrinput/soapysdrinputthread.cpp @@ -36,6 +36,7 @@ SoapySDRInputThread::SoapySDRInputThread(SoapySDR::Device* dev, unsigned int nbR m_decimatorType(DecimatorFloat), m_iqOrder(true) { + setObjectName("SoapySDRInput"); qDebug("SoapySDRInputThread::SoapySDRInputThread"); m_channels = new Channel[nbRxChannels]; } diff --git a/plugins/samplesource/testsource/testsourceinput.cpp b/plugins/samplesource/testsource/testsourceinput.cpp index 488d7c25c..0141a8577 100644 --- a/plugins/samplesource/testsource/testsourceinput.cpp +++ b/plugins/samplesource/testsource/testsourceinput.cpp @@ -98,6 +98,7 @@ bool TestSourceInput::start() } m_testSourceWorkerThread = new QThread(); + m_testSourceWorkerThread->setObjectName("TestSourceInput"); m_testSourceWorker = new TestSourceWorker(&m_sampleFifo); m_testSourceWorker->moveToThread(m_testSourceWorkerThread); diff --git a/plugins/samplesource/usrpinput/usrpinputthread.cpp b/plugins/samplesource/usrpinput/usrpinputthread.cpp index 5a5209109..aea4a2f74 100644 --- a/plugins/samplesource/usrpinput/usrpinputthread.cpp +++ b/plugins/samplesource/usrpinput/usrpinputthread.cpp @@ -39,6 +39,7 @@ USRPInputThread::USRPInputThread(uhd::rx_streamer::sptr stream, size_t bufSample m_replayBuffer(replayBuffer), m_log2Decim(0) { + setObjectName("USRPInput"); // *2 as samples are I+Q m_buf = new qint16[2*bufSamples]; std::fill(m_buf, m_buf + 2*bufSamples, 0); diff --git a/plugins/samplesource/xtrxinput/xtrxinputthread.cpp b/plugins/samplesource/xtrxinput/xtrxinputthread.cpp index de1ee8071..c93c7a3ba 100644 --- a/plugins/samplesource/xtrxinput/xtrxinputthread.cpp +++ b/plugins/samplesource/xtrxinput/xtrxinputthread.cpp @@ -31,6 +31,7 @@ XTRXInputThread::XTRXInputThread(struct xtrx_dev *dev, unsigned int nbChannels, m_uniqueChannelIndex(uniqueChannelIndex), m_iqOrder(true) { + setObjectName("XTRXInput"); qDebug("XTRXInputThread::XTRXInputThread: nbChannels: %u uniqueChannelIndex: %u", nbChannels, uniqueChannelIndex); m_channels = new Channel[2]; diff --git a/sdrbase/audio/audiodevicemanager.cpp b/sdrbase/audio/audiodevicemanager.cpp index 97414ce79..e89a95ba0 100644 --- a/sdrbase/audio/audiodevicemanager.cpp +++ b/sdrbase/audio/audiodevicemanager.cpp @@ -290,6 +290,7 @@ void AudioDeviceManager::addAudioSink(AudioFifo* audioFifo, MessageQueue *sample if (m_audioOutputs.find(outputDeviceIndex) == m_audioOutputs.end()) { QThread *thread = new QThread(); + thread->setObjectName(QString("AudioOut:%1").arg(outputDeviceIndex)); AudioOutputDevice *audioOutputDevice = new AudioOutputDevice(); m_audioOutputs[outputDeviceIndex] = audioOutputDevice; m_audioOutputThreads[outputDeviceIndex] = thread; @@ -383,6 +384,7 @@ void AudioDeviceManager::addAudioSource(AudioFifo* audioFifo, MessageQueue *samp if (m_audioInputs.find(inputDeviceIndex) == m_audioInputs.end()) { QThread *thread = new QThread(); + thread->setObjectName(QString("AudioIn:%1").arg(inputDeviceIndex)); AudioInputDevice *audioInputDevice = new AudioInputDevice(); m_audioInputs[inputDeviceIndex] = audioInputDevice; m_audioInputThreads[inputDeviceIndex] = thread; diff --git a/sdrbase/pipes/datapipes.cpp b/sdrbase/pipes/datapipes.cpp index c5c3a05b2..c27ea3bd7 100644 --- a/sdrbase/pipes/datapipes.cpp +++ b/sdrbase/pipes/datapipes.cpp @@ -23,6 +23,7 @@ DataPipes::DataPipes() : m_registrations(&m_dataFifoStore) { + m_gcThread.setObjectName("DataPipes:gc"); m_gcWorker = new DataPipesGCWorker(m_registrations); m_gcWorker->moveToThread(&m_gcThread); startGC(); diff --git a/sdrbase/pipes/messagepipes.cpp b/sdrbase/pipes/messagepipes.cpp index 1104e0150..da3cc98a3 100644 --- a/sdrbase/pipes/messagepipes.cpp +++ b/sdrbase/pipes/messagepipes.cpp @@ -23,6 +23,7 @@ MessagePipes::MessagePipes() : m_registrations(&m_messageQueueStore) { + m_gcThread.setObjectName("MessagePipes:gc"); m_gcWorker = new MessagePipesGCWorker(m_registrations); m_gcWorker->moveToThread(&m_gcThread); startGC(); diff --git a/sdrbase/pipes/messagepipeslegacy.cpp b/sdrbase/pipes/messagepipeslegacy.cpp index a563efcb3..220faaf4d 100644 --- a/sdrbase/pipes/messagepipeslegacy.cpp +++ b/sdrbase/pipes/messagepipeslegacy.cpp @@ -26,6 +26,7 @@ MessagePipesLegacy::MessagePipesLegacy() { + m_gcThread.setObjectName("LgcyMsgPipe:gc"); m_gcWorker = new MessagePipesLegacyGCWorker(); m_gcWorker->setC2FRegistrations( m_registrations.getMutex(), diff --git a/sdrgui/gui/samplingdevicedialog.cpp b/sdrgui/gui/samplingdevicedialog.cpp index 25a0eccd3..383d6eed9 100644 --- a/sdrgui/gui/samplingdevicedialog.cpp +++ b/sdrgui/gui/samplingdevicedialog.cpp @@ -145,6 +145,7 @@ void SamplingDeviceDialog::on_refreshDevices_clicked() m_progressDialog->show(); SamplingDeviceDialogWorker *worker = new SamplingDeviceDialogWorker(m_deviceType); QThread *thread = new QThread(); + thread->setObjectName(QString("Sampling:%1").arg(m_deviceType)); worker->moveToThread(thread); connect(thread, &QThread::started, worker, &SamplingDeviceDialogWorker::enumerateDevices); connect(worker, &SamplingDeviceDialogWorker::finishedWork, thread, &QThread::quit);