Set thread names for better debugging

This commit is contained in:
SChernykh
2025-03-13 11:19:58 +01:00
parent 37e8cc01cf
commit d1dd95d9c9
10 changed files with 59 additions and 0 deletions
+4
View File
@@ -130,6 +130,8 @@ void ZMQReader::monitor_thread(void* arg)
{
LOGINFO(1, "monitor thread ready");
set_thread_name("ZMQ monitor");
ZMQReader* r = reinterpret_cast<ZMQReader*>(arg);
do {} while (!r->m_stopped && r->m_monitor->m_connected && r->m_monitor->check_event(-1));
@@ -151,6 +153,8 @@ void ZMQReader::run()
m_workerThreadRunning = true;
ON_SCOPE_LEAVE([this]() { m_workerThreadRunning = false; });
set_thread_name("ZMQ worker");
zmq_msg_t message = {};
try {