dm: set correct thread name

When issue happen, we could identify which thread is impacted.
This could help stability issue debugging.

Tracked-On: #2037
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
Yin Fengwei
2018-12-11 14:29:31 +08:00
committed by wenlingz
parent cb31381561
commit 73ab727434
4 changed files with 6 additions and 0 deletions

View File

@@ -1250,6 +1250,8 @@ usb_dev_sys_init(usb_dev_sys_cb conn_cb, usb_dev_sys_cb disconn_cb,
native_disconn_handle);
goto errout;
}
pthread_setname_np(g_ctx.thread, "usb_dev_sys");
return 0;
errout: