mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-140414: streamline thread state access in asyncio (#142742)
This commit is contained in:
parent
15c9d9027e
commit
fb554ad68d
3 changed files with 36 additions and 33 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue