summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2019-09-30 05:59:11 (GMT)
committerGitHub <noreply@github.com>2019-09-30 05:59:11 (GMT)
commitfc4a044a3c54ce21e9ed150f7d769fb479d34c49 (patch)
treee1edc8803eeb30b48f333ff88cd478a4cc75a2c4 /Include
parent6758e6e12a71ef5530146161881f88df1fa43382 (diff)
downloadcpython-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.h2
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;