Fix an undefined behaviour in the pthread implementation of PyThread_start_new_thread(): add a function wrapper to always return NULL. Add pythread_callback struct and pythread_wrapper() to thread_pthread.h. (cherry picked from commit 9eea6ea) Co-authored-by: Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com>
Fix an undefined behaviour in the pthread implementation of
PyThread_start_new_thread(): add a function wrapper to always return
NULL.
Add pythread_callback struct and pythread_wrapper() to thread_pthread.h.
(cherry picked from commit 9eea6ea)
Co-authored-by: Siddhesh Poyarekar siddhesh.poyarekar@gmail.com
https://bugs.python.org/issue33015