mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-131268: Implement thread names on OpenBSD (#131528)
This commit is contained in:
parent
e0fda794fa
commit
b70d45ab22
5 changed files with 49 additions and 11 deletions
13
configure
generated
vendored
13
configure
generated
vendored
|
|
@ -19608,12 +19608,24 @@ if test "x$ac_cv_func_pthread_kill" = xyes
|
|||
then :
|
||||
printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
ac_fn_c_check_func "$LINENO" "pthread_get_name_np" "ac_cv_func_pthread_get_name_np"
|
||||
if test "x$ac_cv_func_pthread_get_name_np" = xyes
|
||||
then :
|
||||
printf "%s\n" "#define HAVE_PTHREAD_GET_NAME_NP 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
ac_fn_c_check_func "$LINENO" "pthread_getname_np" "ac_cv_func_pthread_getname_np"
|
||||
if test "x$ac_cv_func_pthread_getname_np" = xyes
|
||||
then :
|
||||
printf "%s\n" "#define HAVE_PTHREAD_GETNAME_NP 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np"
|
||||
if test "x$ac_cv_func_pthread_set_name_np" = xyes
|
||||
then :
|
||||
printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np"
|
||||
if test "x$ac_cv_func_pthread_setname_np" = xyes
|
||||
|
|
@ -30455,6 +30467,7 @@ case "$ac_sys_system" in
|
|||
Darwin) _PYTHREAD_NAME_MAXLEN=63;;
|
||||
iOS) _PYTHREAD_NAME_MAXLEN=63;;
|
||||
FreeBSD*) _PYTHREAD_NAME_MAXLEN=19;; # gh-131268
|
||||
OpenBSD*) _PYTHREAD_NAME_MAXLEN=23;; # gh-131268
|
||||
*) _PYTHREAD_NAME_MAXLEN=;;
|
||||
esac
|
||||
if test -n "$_PYTHREAD_NAME_MAXLEN"; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue