mirror of
https://github.com/python/cpython.git
synced 2026-01-01 04:53:46 +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
|
|
@ -190,7 +190,7 @@ context_switched(PyThreadState *ts)
|
|||
}
|
||||
|
||||
|
||||
static int
|
||||
int
|
||||
_PyContext_Enter(PyThreadState *ts, PyObject *octx)
|
||||
{
|
||||
ENSURE_Context(octx, -1)
|
||||
|
|
@ -220,7 +220,7 @@ PyContext_Enter(PyObject *octx)
|
|||
}
|
||||
|
||||
|
||||
static int
|
||||
int
|
||||
_PyContext_Exit(PyThreadState *ts, PyObject *octx)
|
||||
{
|
||||
ENSURE_Context(octx, -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue