From 7e23243420524a3848ad9a112c8df364197a00d1 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 25 Sep 2022 15:26:07 +0200 Subject: [PATCH] chore: name the different threads to make diagnostics easier --- src/Connection.cpp | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/src/Connection.cpp b/src/Connection.cpp index f2845ef..3baecf0 100644 --- a/src/Connection.cpp +++ b/src/Connection.cpp @@ -22,6 +22,8 @@ TrueMQTT::Client::Impl::Connection::Connection(Client::Impl &impl) m_thread_write(&Connection::runWrite, this), m_backoff(impl.m_connection_backoff) { + pthread_setname_np(m_thread_read.native_handle(), "TrueMQTT::Read"); + pthread_setname_np(m_thread_write.native_handle(), "TrueMQTT::Write"); } TrueMQTT::Client::Impl::Connection::~Connection() -- libgit2 0.21.4