[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work
STINNER Victor
report at bugs.python.org
Wed Jun 16 11:37:59 EDT 2021
STINNER Victor <vstinner at python.org> added the comment:
Unix pthread_create() manual page.
https://man7.org/linux/man-pages/man3/pthread_create.3.html
The new thread terminates in one of the following ways:
(...)
* It returns from start_routine(). This is equivalent to calling pthread_exit(3) with the value supplied in
the return statement.
(...)
Calling pthread_exit(0) is optional.
--
MSDN _beginthreadex() documentation:
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/beginthread-beginthreadex?view=msvc-160
"When the thread returns from that routine, it is terminated automatically."
Calling _endthreadex(0) is optional.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44434>
_______________________________________
More information about the Python-bugs-list
mailing list