Implement thread name on windows, cleanup thread naming internals

This commit is contained in:
Romain Moret
2019-05-20 19:27:12 +02:00
parent 046ccfc408
commit 27005cc1ae
8 changed files with 75 additions and 34 deletions

View File

@@ -57,10 +57,8 @@ zmq::io_thread_t::~io_thread_t ()
void zmq::io_thread_t::start ()
{
char name[16] = "";
#ifndef ZMQ_HAVE_WINDOWS
snprintf (name, sizeof (name), "IO/%u",
get_tid () - zmq::ctx_t::reaper_tid - 1);
#endif
// Start the underlying I/O thread.
_poller->start (name);
}