gh-140414: streamline thread state access in asyncio (#142742)

This commit is contained in:
Kumar Aditya 2025-12-15 16:57:51 +05:30 committed by GitHub
parent 15c9d9027e
commit fb554ad68d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 36 additions and 33 deletions

View file

@ -55,5 +55,8 @@ struct _pycontexttokenobject {
// Export for '_testcapi' shared extension
PyAPI_FUNC(PyObject*) _PyContext_NewHamtForTests(void);
PyAPI_FUNC(int) _PyContext_Enter(PyThreadState *ts, PyObject *octx);
PyAPI_FUNC(int) _PyContext_Exit(PyThreadState *ts, PyObject *octx);
#endif /* !Py_INTERNAL_CONTEXT_H */