From c4799f186b31e579721f5874c897f3f46db6ad0a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 10 Sep 2016 21:14:19 -0700 Subject: os: Use pthread_setname_np to set thread names if available Autoconf logic borrowed from glib Signed-off-by: Alan Coopersmith Reviewed-by: Jeremy Huddleston Sequoia Tested-by: Jeremy Huddleston Sequoia --- include/dix-config.h.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/dix-config.h.in b/include/dix-config.h.in index d49af928f..4f020e5d8 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -143,6 +143,12 @@ /* Define to 1 if you have the `mmap' function. */ #undef HAVE_MMAP +/* Define to 1 if you have the function pthread_setname_np(const char*) */ +#undef HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID + +/* Define to 1 if you have the function pthread_setname_np(pthread_t, const char*) */ +#undef HAVE_PTHREAD_SETNAME_NP_WITH_TID + /* Define to 1 if you have the header file. */ #undef HAVE_NDBM_H -- cgit v1.2.3