diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-05-30 14:49:32 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-05-30 14:49:32 (GMT) |
commit | 08ec84cf726afac844470f6f0b0dab971bb81349 (patch) | |
tree | c3aa6d540af7a2b9a13f4970d669aefb71025072 /Python/ceval.c | |
parent | fa8932e0402d91bb3190aa2c8a3deaa9f1065128 (diff) | |
download | cpython-08ec84cf726afac844470f6f0b0dab971bb81349.zip cpython-08ec84cf726afac844470f6f0b0dab971bb81349.tar.gz cpython-08ec84cf726afac844470f6f0b0dab971bb81349.tar.bz2 |
use atomic structures in non-thread version
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 297b449..5af2943 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) |