SIGN IN SIGN UP

gh-59705: Add _thread.set_name() function (#127338)

On Linux, threading.Thread now sets the thread name to the operating
system.

* configure now checks if pthread_getname_np()
  and pthread_setname_np() functions are available.
* Add PYTHREAD_NAME_MAXLEN macro.
* Add _thread._NAME_MAXLEN constant for test_threading.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
V
Victor Stinner committed
67b18a18b66b89e253f38895057ef9f6bae92e7b
Parent: 12680ec
Committed by GitHub <noreply@github.com> on 12/6/2024, 4:27:12 PM