mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
msg/async: set thread name for msgr worker
Signed-off-by: Haomai Wang <haomai@xsky.com>
This commit is contained in:
parent
1f0824b72d
commit
26d1845d43
@ -35,8 +35,11 @@ std::function<void ()> NetworkStack::add_thread(unsigned i)
|
|||||||
{
|
{
|
||||||
Worker *w = workers[i];
|
Worker *w = workers[i];
|
||||||
return [this, w]() {
|
return [this, w]() {
|
||||||
const uint64_t EventMaxWaitUs = 30000000;
|
char tp_name[16];
|
||||||
w->center.set_owner();
|
sprintf(tp_name, "msgr-worker-%d", w->id);
|
||||||
|
pthread_setname_np(pthread_self(), tp_name);
|
||||||
|
const uint64_t EventMaxWaitUs = 30000000;
|
||||||
|
w->center.set_owner();
|
||||||
ldout(cct, 10) << __func__ << " starting" << dendl;
|
ldout(cct, 10) << __func__ << " starting" << dendl;
|
||||||
w->initialize();
|
w->initialize();
|
||||||
w->init_done();
|
w->init_done();
|
||||||
|
Loading…
Reference in New Issue
Block a user