mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-08 14:56:14 +01:00
Implement thread name on windows, cleanup thread naming internals
This commit is contained in:
@@ -426,14 +426,10 @@ void zmq::thread_ctx_t::start_thread (thread_t &thread_,
|
||||
_thread_affinity_cpus);
|
||||
|
||||
char namebuf[16] = "";
|
||||
#ifdef ZMQ_HAVE_WINDOWS
|
||||
LIBZMQ_UNUSED (name_);
|
||||
#else
|
||||
snprintf (namebuf, sizeof (namebuf), "%s%sZMQbg%s%s",
|
||||
_thread_name_prefix.empty () ? "" : _thread_name_prefix.c_str (),
|
||||
_thread_name_prefix.empty () ? "" : "/", name_ ? "/" : "",
|
||||
name_ ? name_ : "");
|
||||
#endif
|
||||
thread_.start (tfn_, arg_, namebuf);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user