Set thread names for better debugging
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user