From b724a5d59c93b27129a35ba51f72c9566d0f467a Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 10 Jan 2022 21:19:02 -0700 Subject: [PATCH] named threadds --- Controller.cpp | 2 ++ DV3003.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Controller.cpp b/Controller.cpp index 6bfd402..54828ae 100644 --- a/Controller.cpp +++ b/Controller.cpp @@ -174,6 +174,7 @@ bool CController::InitDevices() // based on packet's codec_in. void CController::ReadReflectorThread() { + pthread_setname_np(gettid(), "ReadReflector"); while (keep_running) { STCPacket tcpack; @@ -289,6 +290,7 @@ void CController::Codec2toAudio(std::shared_ptr packet) void CController::ProcessC2Thread() { + pthread_setname_np(gettid(), "ProcessC2"); while (keep_running) { auto packet = codec2_queue.pop(); diff --git a/DV3003.cpp b/DV3003.cpp index 17ba121..97da7e2 100644 --- a/DV3003.cpp +++ b/DV3003.cpp @@ -512,6 +512,7 @@ bool CDV3003::GetResponse(SDV3003_Packet &packet) void CDV3003::FeedDevice() { + pthread_setname_np(gettid(), "FeedDevice"); const std::string modules(TRANSCODED_MODULES); const auto n = modules.size(); while (keep_running) @@ -557,6 +558,7 @@ void CDV3003::FeedDevice() void CDV3003::ReadDevice() { + pthread_setname_np(gettid(), "ReadDevice"); while (keep_running) { dv3003_packet p;