From 08ec84cf726afac844470f6f0b0dab971bb81349 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 30 May 2010 14:49:32 +0000 Subject: [PATCH] use atomic structures in non-thread version --- Python/ceval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index 297b44973bf..5af2943960f 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)