Skip to content

Commit

Permalink
thread: add trace thread name logging (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers authored Oct 10, 2023
1 parent a5a002a commit e4f2224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/thread/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <re_fmt.h>
#include <re_mem.h>
#include <re_thread.h>
#include <re_trace.h>
#ifdef HAVE_PRCTL
#include <sys/prctl.h>
#endif
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit e4f2224

Please sign in to comment.