diff options
author | Qi Wang <interwq@gwu.edu> | 2017-06-23 09:58:35 -0700 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-06-23 10:54:54 -0700 |
commit | a3f4977217af417b547e34cec3f5bd16874b8aa9 (patch) | |
tree | 85c1d5f0afa1f999ccf6a10ee215ff4e33a9b329 /configure.ac | |
parent | 52fc887b49c768a9cee61d9bda9c885efb10fe95 (diff) |
Add thread name for background threads.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 32ae02c2..770fff56 100644 --- a/configure.ac +++ b/configure.ac @@ -1470,6 +1470,15 @@ if test "x$abi" != "xpecoff" ; then if test "x${je_cv_pthread_atfork}" = "xyes" ; then AC_DEFINE([JEMALLOC_HAVE_PTHREAD_ATFORK], [ ]) fi + dnl Check if pthread_setname_np is available with the expected API. + JE_COMPILABLE([pthread_setname_np(3)], [ +#include <pthread.h> +], [ + pthread_setname_np(pthread_self(), "setname_test"); +], [je_cv_pthread_setname_np]) + if test "x${je_cv_pthread_setname_np}" = "xyes" ; then + AC_DEFINE([JEMALLOC_HAVE_PTHREAD_SETNAME_NP], [ ]) + fi fi JE_APPEND_VS(CPPFLAGS, -D_REENTRANT) |