From 4bee8b53451dbf16221485a90eccc48dd104f25e Mon Sep 17 00:00:00 2001 From: nafets227 Date: Sun, 9 Nov 2014 21:39:59 +0100 Subject: [PATCH] thread names now include Device ID (Replay of Subversion #52 --- data.c | 2 +- sectionfilter.c | 2 +- tuner.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data.c b/data.c index e64b9d4..abb21b9 100644 --- a/data.c +++ b/data.c @@ -34,7 +34,7 @@ int logLevel = logFunc | logFuncPerf | logData; #define __CLASS__ "cSatipTunerDataThread" cSatipTunerDataThread::cSatipTunerDataThread(cSatipDeviceIf &deviceP, cSatipTunerStatistics &statisticsP, unsigned int packetLenP) -: cThread("SAT>IP data"), +: cThread(cString::sprintf("SAT>IP data %d", deviceP.GetId())), deviceM(&deviceP), statisticsM(&statisticsP), packetBufferLenM(packetLenP), diff --git a/sectionfilter.c b/sectionfilter.c index e24a48a..a00ada8 100644 --- a/sectionfilter.c +++ b/sectionfilter.c @@ -231,7 +231,7 @@ bool cSatipSectionFilter::Send(void) cSatipSectionFilterHandler::cSatipSectionFilterHandler(int deviceIndexP, unsigned int bufferLenP) -: cThread("SAT>IP section handler"), +: cThread(cString::sprintf("SAT>IP sect %d", deviceIndexP)), ringBufferM(new cRingBufferLinear(bufferLenP, TS_SIZE, false, *cString::sprintf("SAT>IP SECTION HANDLER %d", deviceIndexP))), mutexM(), deviceIndexM(deviceIndexP) diff --git a/tuner.c b/tuner.c index 824f78e..71483da 100644 --- a/tuner.c +++ b/tuner.c @@ -11,7 +11,7 @@ #include "tuner.h" cSatipTuner::cSatipTuner(cSatipDeviceIf &deviceP, unsigned int packetLenP) -: cThread("SAT>IP tuner"), +: cThread(cString::sprintf("SAT>IP tuner %d", deviceP.GetId())), dataThreadM(deviceP, *this, packetLenP), sleepM(), deviceM(&deviceP),