mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-120838: Add _PyThreadState_WHENCE_FINI (gh-121010)
We also add _PyThreadState_NewBound() and drop _PyThreadState_SetWhence(). This change only affects internal API.
This commit is contained in:
parent
769aea3329
commit
a905721b9c
8 changed files with 27 additions and 27 deletions
|
@ -217,10 +217,14 @@ static inline PyInterpreterState* _PyInterpreterState_GET(void) {
|
|||
|
||||
// PyThreadState functions
|
||||
|
||||
extern PyThreadState * _PyThreadState_New(
|
||||
// Export for _testinternalcapi
|
||||
PyAPI_FUNC(PyThreadState *) _PyThreadState_New(
|
||||
PyInterpreterState *interp,
|
||||
int whence);
|
||||
extern void _PyThreadState_Bind(PyThreadState *tstate);
|
||||
PyAPI_FUNC(PyThreadState *) _PyThreadState_NewBound(
|
||||
PyInterpreterState *interp,
|
||||
int whence);
|
||||
extern PyThreadState * _PyThreadState_RemoveExcept(PyThreadState *tstate);
|
||||
extern void _PyThreadState_DeleteList(PyThreadState *list);
|
||||
extern void _PyThreadState_ClearMimallocHeaps(PyThreadState *tstate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue