We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b1eaf6 commit cf76777Copy full SHA for cf76777
Include/internal/pycore_pythread.h
@@ -159,6 +159,10 @@ PyAPI_FUNC(int) PyThread_detach_thread(PyThread_handle_t);
159
* normally from its start function. This is used during finalization in lieu
160
* of actually exiting the thread. Since the program is expected to terminate
161
* soon anyway, it does not matter if the thread stack stays around until then.
162
+ *
163
+ * This is unfortunate for embedders who may not be terminating their process
164
+ * when they're done with the interpreter, but our C API design does not allow
165
+ * for safely exiting threads attempting to re-enter Python post finalization.
166
*/
167
void _Py_NO_RETURN PyThread_hang_thread(void);
168
0 commit comments