diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-05-30 14:49:32 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-05-30 14:49:32 +0000 |
commit | 7b451e50418084f74c9c9a2ce4928782929df2d5 (patch) | |
tree | 5f9a7ff5f79a2e656a5a76c1b9e803873ffaa1d6 /Python/ceval.c | |
parent | ae8f44924f7cfb8ea6ed7739f83e25e7a08aa94e (diff) | |
download | cpython-7b451e50418084f74c9c9a2ce4928782929df2d5.tar.gz |
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 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) |