diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-17 14:24:56 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-06-17 14:24:56 +0200 |
commit | 5950cd21ae4ad1b9ddc98a6f1c8716e1627ebbd2 (patch) | |
tree | 617d2af1c25f71fb3511639430a20848c9d8dace /src/RemoteControl.cpp | |
parent | e48df9cb5ec9e48cd836ec227127f42c5cc99aa1 (diff) | |
download | dabmod-5950cd21ae4ad1b9ddc98a6f1c8716e1627ebbd2.tar.gz dabmod-5950cd21ae4ad1b9ddc98a6f1c8716e1627ebbd2.tar.bz2 dabmod-5950cd21ae4ad1b9ddc98a6f1c8716e1627ebbd2.zip |
Set custom names to threads
Diffstat (limited to 'src/RemoteControl.cpp')
-rw-r--r-- | src/RemoteControl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 <boost/thread.hpp> #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 { |