summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2018-01-29 20:37:09 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2018-01-29 20:37:09 (GMT)
commit72a0d218dcc94a3cc409a9ef32dfcd5a7bbcb43c (patch)
treedce812414bdc6029522a92a6afd10dd00fdc8f06 /Include/internal
parent0cd6bca65519109a8a7862d38ba1b8924e432a16 (diff)
downloadcpython-72a0d218dcc94a3cc409a9ef32dfcd5a7bbcb43c.zip
cpython-72a0d218dcc94a3cc409a9ef32dfcd5a7bbcb43c.tar.gz
cpython-72a0d218dcc94a3cc409a9ef32dfcd5a7bbcb43c.tar.bz2
bpo-31356: Add context manager to temporarily disable GC (GH-4224)
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/mem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/mem.h b/Include/internal/mem.h
index a731e30..4a84b4a 100644
--- a/Include/internal/mem.h
+++ b/Include/internal/mem.h
@@ -116,6 +116,7 @@ struct _gc_runtime_state {
int enabled;
int debug;
+ long disabled_threads;
/* linked lists of container objects */
struct gc_generation generations[NUM_GENERATIONS];
PyGC_Head *generation0;