From 6c5070d9157ab0de667568655f0bbeb60780d701 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 8 Aug 2020 18:25:48 -0700 Subject: fixes #960 NNG threads inherit application thread name This also exposes an nng_thread_set_name() function for applications to use. All NNG thread names start with "nng:". Note that support is highly dependent on the operating system. --- src/core/aio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/aio.c') diff --git a/src/core/aio.c b/src/core/aio.c index ea2203f2..97bb9153 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -488,6 +488,8 @@ nni_aio_expire_loop(void *unused) NNI_ARG_UNUSED(unused); + nni_thr_set_name(NULL, "nng:aio:expire"); + for (;;) { nni_aio_cancelfn fn; nni_time now; -- cgit v1.2.3-70-g09d2