From 5950cd21ae4ad1b9ddc98a6f1c8716e1627ebbd2 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 17 Jun 2016 14:24:56 +0200 Subject: Set custom names to threads --- src/RemoteControl.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/RemoteControl.cpp') diff --git a/src/RemoteControl.cpp b/src/RemoteControl.cpp index fa797ef..3872dc3 100644 --- a/src/RemoteControl.cpp +++ b/src/RemoteControl.cpp @@ -30,6 +30,7 @@ #include #include "RemoteControl.h" +#include "Utils.h" using boost::asio::ip::tcp; using namespace std; @@ -58,6 +59,7 @@ void RemoteControllerTelnet::restart_thread(long) void RemoteControllerTelnet::process(long) { + set_thread_name("telnet_rc"); std::string m_welcome = "ODR-DabMod Remote Control CLI\n" "Write 'help' for help.\n" "**********\n"; @@ -298,6 +300,7 @@ void RemoteControllerZmq::send_fail_reply(zmq::socket_t &pSocket, const std::str void RemoteControllerZmq::process() { + set_thread_name("zmq_rc"); // create zmq reply socket for receiving ctrl parameters etiLog.level(info) << "Starting zmq remote control thread"; try { -- cgit v1.2.3