mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-29 08:39:42 +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:
parent
c8d039a3c7
commit
c63b0955e5
@ -74,7 +74,7 @@ class thread_t
|
|||||||
|
|
||||||
// Creates OS thread. 'tfn' is main thread function. It'll be passed
|
// Creates OS thread. 'tfn' is main thread function. It'll be passed
|
||||||
// 'arg' as an argument.
|
// '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.
|
// Returns whether the thread was started, i.e. start was called.
|
||||||
bool get_started () const;
|
bool get_started () const;
|
||||||
|
@ -84,7 +84,7 @@ void *zmq_threadstart (zmq_thread_fn *func_, void *arg_)
|
|||||||
{
|
{
|
||||||
zmq::thread_t *thread = new (std::nothrow) zmq::thread_t;
|
zmq::thread_t *thread = new (std::nothrow) zmq::thread_t;
|
||||||
alloc_assert (thread);
|
alloc_assert (thread);
|
||||||
thread->start (func_, arg_);
|
thread->start (func_, arg_, "ZMQapp");
|
||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user