mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
bpo-30773: Fix ag_running; prohibit running athrow/asend/aclose in parallel (#7468)
This commit is contained in:
parent
6758e6e12a
commit
fc4a044a3c
4 changed files with 54 additions and 64 deletions
|
@ -79,6 +79,8 @@ typedef struct {
|
|||
/* Flag is set to 1 when aclose() is called for the first time, or
|
||||
when a StopAsyncIteration exception is raised. */
|
||||
int ag_closed;
|
||||
|
||||
int ag_running_async;
|
||||
} PyAsyncGenObject;
|
||||
|
||||
PyAPI_DATA(PyTypeObject) PyAsyncGen_Type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue