mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
gthread: add thread name support on Mac OS
https://bugzilla.gnome.org/show_bug.cgi?id=741807
This commit is contained in:
committed by
Ryan Lortie
parent
1cf7f5a240
commit
2a0c18041b
10
configure.ac
10
configure.ac
@@ -2240,6 +2240,16 @@ AS_IF([ test x"$have_threads" = xposix], [
|
||||
AC_DEFINE(HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP,1,
|
||||
[Have function pthread_cond_timedwait_relative_np])],
|
||||
[AC_MSG_RESULT(no)])
|
||||
dnl Sets thread names on OS X 10.6, iOS 3.2 (and higher)
|
||||
AC_MSG_CHECKING(for pthread_setname_np(const char*))
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[#include <pthread.h>],
|
||||
[pthread_setname_np("example")])],
|
||||
[AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID,1,
|
||||
[Have function pthread_setname_np(const char*)])],
|
||||
[AC_MSG_RESULT(no)])
|
||||
CPPFLAGS="$glib_save_CPPFLAGS"
|
||||
])
|
||||
|
||||
|
Reference in New Issue
Block a user