thread/Name: set thread names

For debugging.
This commit is contained in:
Max Kellermann
2014-01-23 10:07:14 +01:00
parent 1d547fe273
commit ec41d849bb
7 changed files with 79 additions and 0 deletions

View File

@@ -181,6 +181,13 @@ AC_SEARCH_LIBS([exp], [m],,
AC_CHECK_HEADERS(locale.h)
AC_CHECK_HEADERS(valgrind/memcheck.h)
AC_CHECK_LIB([pthread], [pthread_setname_np],
[have_pthread_setname_np=yes],
[have_pthread_setname_np=no])
if test x$have_pthread_setname_np = xyes; then
AC_DEFINE(HAVE_PTHREAD_SETNAME_NP, 1, [Is pthread_setname_np() available?])
fi
dnl ---------------------------------------------------------------------------
dnl Event loop selection
dnl ---------------------------------------------------------------------------