aboutsummaryrefslogtreecommitdiff
path: root/src/core/taskq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/taskq.c')
-rw-r--r--src/core/taskq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/taskq.c b/src/core/taskq.c
index fbd93ebe..9ccd5845 100644
--- a/src/core/taskq.c
+++ b/src/core/taskq.c
@@ -34,7 +34,9 @@ nni_taskq_thread(void *self)
nni_taskq * tq = thr->tqt_tq;
nni_task * task;
- nni_mtx_lock(&tq->tq_mtx);
+ nni_thr_set_name(NULL, "nng:task");
+
+ nni_mtx_lock(&tq->tq_mtx);
for (;;) {
if ((task = nni_list_first(&tq->tq_tasks)) != NULL) {