Commit d02561ee authored by Luca Boccassi's avatar Luca Boccassi

Problem: IO thread name starts counting at 1

Solution: start at 0
parent 56339644
......@@ -58,7 +58,7 @@ void zmq::io_thread_t::start ()
{
char name[16];
snprintf (name, sizeof (name), "IO/%u",
get_tid () - zmq::ctx_t::reaper_tid);
get_tid () - zmq::ctx_t::reaper_tid - 1);
// Start the underlying I/O thread.
_poller->start (name);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment