From e4f22248da8dc4100dee48b30d6abf1fc56e65b7 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Tue, 10 Oct 2023 21:27:59 +0200 Subject: [PATCH] thread: add trace thread name logging (#980) --- src/thread/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/thread/thread.c b/src/thread/thread.c index 559df5f07..c3e16af8e 100644 --- a/src/thread/thread.c +++ b/src/thread/thread.c @@ -2,6 +2,7 @@ #include #include #include +#include #ifdef HAVE_PRCTL #include #endif @@ -97,6 +98,7 @@ static int handler(void *p) (void)pthread_setname_np(*th.thr, th.name); #endif #endif + RE_TRACE_THREAD_NAME(th.name); return th.func(th.arg); }