mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
bpo-39877: Deprecate PyEval_InitThreads() (GH-18892)
Deprecated PyEval_InitThreads() and PyEval_ThreadsInitialized(). Calling PyEval_InitThreads() now does nothing.
This commit is contained in:
parent
175a704abf
commit
b4698ecfdb
5 changed files with 21 additions and 13 deletions
|
@ -241,12 +241,7 @@ _PyEval_InitThreads(PyThreadState *tstate)
|
|||
void
|
||||
PyEval_InitThreads(void)
|
||||
{
|
||||
PyThreadState *tstate = _PyThreadState_GET();
|
||||
|
||||
PyStatus status = _PyEval_InitThreads(tstate);
|
||||
if (_PyStatus_EXCEPTION(status)) {
|
||||
Py_ExitStatusException(status);
|
||||
}
|
||||
/* Do nothing: kept for backward compatibility */
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue