mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-17 00:23:58 +00:00
Problem: IO thread name starts counting at 1
Solution: start at 0
This commit is contained in:
parent
563396445a
commit
d02561eec0
@ -58,7 +58,7 @@ void zmq::io_thread_t::start ()
|
|||||||
{
|
{
|
||||||
char name[16];
|
char name[16];
|
||||||
snprintf (name, sizeof (name), "IO/%u",
|
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.
|
// Start the underlying I/O thread.
|
||||||
_poller->start (name);
|
_poller->start (name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user