mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bpo-36475: Make PyThread_exit_thread with _Py_NO_RETURN (GH-13068)
This commit is contained in:
parent
6b5b013bcc
commit
c664b342a4
6 changed files with 17 additions and 15 deletions
|
@ -211,7 +211,6 @@ exit_thread_if_finalizing(PyThreadState *tstate)
|
|||
if (_Py_IsFinalizing() && !_Py_CURRENTLY_FINALIZING(tstate)) {
|
||||
drop_gil(tstate);
|
||||
PyThread_exit_thread();
|
||||
Py_UNREACHABLE();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -227,7 +227,7 @@ PyThread_get_thread_ident(void)
|
|||
return GetCurrentThreadId();
|
||||
}
|
||||
|
||||
void
|
||||
void _Py_NO_RETURN
|
||||
PyThread_exit_thread(void)
|
||||
{
|
||||
dprintf(("%lu: PyThread_exit_thread called\n", PyThread_get_thread_ident()));
|
||||
|
|
|
@ -302,7 +302,7 @@ PyThread_get_thread_ident(void)
|
|||
return (unsigned long) threadid;
|
||||
}
|
||||
|
||||
void
|
||||
void _Py_NO_RETURN
|
||||
PyThread_exit_thread(void)
|
||||
{
|
||||
dprintf(("PyThread_exit_thread called\n"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue