0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-28 07:58:14 +08:00

Problem: zmq_threadstart name not distinguished

Solution: name it ZMQapp instead of ZMQbg, as it's created by the
application
This commit is contained in:
Luca Boccassi 2019-02-17 19:06:03 +00:00
parent c8d039a3c7
commit c63b0955e5
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class thread_t
// Creates OS thread. 'tfn' is main thread function. It'll be passed
// 'arg' as an argument.
void start (thread_fn *tfn_, void *arg_, const char *name_ = "0MQ");
void start (thread_fn *tfn_, void *arg_, const char *name_);
// Returns whether the thread was started, i.e. start was called.
bool get_started () const;

View File

@ -84,7 +84,7 @@ void *zmq_threadstart (zmq_thread_fn *func_, void *arg_)
{
zmq::thread_t *thread = new (std::nothrow) zmq::thread_t;
alloc_assert (thread);
thread->start (func_, arg_);
thread->start (func_, arg_, "ZMQapp");
return thread;
}