diff options
author | Yury Selivanov <yury@magic.io> | 2019-09-30 05:59:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-30 05:59:11 (GMT) |
commit | fc4a044a3c54ce21e9ed150f7d769fb479d34c49 (patch) | |
tree | e1edc8803eeb30b48f333ff88cd478a4cc75a2c4 /Include | |
parent | 6758e6e12a71ef5530146161881f88df1fa43382 (diff) | |
download | cpython-fc4a044a3c54ce21e9ed150f7d769fb479d34c49.zip cpython-fc4a044a3c54ce21e9ed150f7d769fb479d34c49.tar.gz cpython-fc4a044a3c54ce21e9ed150f7d769fb479d34c49.tar.bz2 |
bpo-30773: Fix ag_running; prohibit running athrow/asend/aclose in parallel (#7468)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/genobject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/genobject.h b/Include/genobject.h index 3b3b68b..96f8dcc 100644 --- a/Include/genobject.h +++ b/Include/genobject.h @@ -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; |