mirror of
https://github.com/python/cpython
synced 2024-10-14 10:33:27 +00:00
gh-112026: Add again _PyThreadState_UncheckedGet() function (#112121)
Add again the private _PyThreadState_UncheckedGet() function as an alias to the new public PyThreadState_GetUnchecked() function.
This commit is contained in:
parent
e5dfcc2b6e
commit
7e2308aaa2
|
@ -231,6 +231,9 @@ struct _ts {
|
|||
* if it is NULL. */
|
||||
PyAPI_FUNC(PyThreadState *) PyThreadState_GetUnchecked(void);
|
||||
|
||||
// Alias kept for backward compatibility
|
||||
#define _PyThreadState_UncheckedGet PyThreadState_GetUnchecked
|
||||
|
||||
|
||||
// Disable tracing and profiling.
|
||||
PyAPI_FUNC(void) PyThreadState_EnterTracing(PyThreadState *tstate);
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Add again the private ``_PyThreadState_UncheckedGet()`` function as an alias
|
||||
to the new public :c:func:`PyThreadState_GetUnchecked` function. Patch by
|
||||
Victor Stinner.
|
Loading…
Reference in a new issue