summaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-05-30 14:49:32 +0000
committerBenjamin Peterson <benjamin@python.org>2010-05-30 14:49:32 +0000
commit7b451e50418084f74c9c9a2ce4928782929df2d5 (patch)
tree5f9a7ff5f79a2e656a5a76c1b9e803873ffaa1d6 /Python/ceval.c
parentae8f44924f7cfb8ea6ed7739f83e25e7a08aa94e (diff)
downloadcpython-7b451e50418084f74c9c9a2ce4928782929df2d5.tar.gz
use atomic structures in non-thread version
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 297b44973b..5af2943960 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -598,7 +598,7 @@ static struct {
} pendingcalls[NPENDINGCALLS];
static volatile int pendingfirst = 0;
static volatile int pendinglast = 0;
-static volatile int pendingcalls_to_do = 0;
+static _Py_atomic_int pendingcalls_to_do = {0};
int
Py_AddPendingCall(int (*func)(void *), void *arg)