Skip to content

Commit

Permalink
use atomic structures in non-thread version
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed May 30, 2010
1 parent fa8932e commit 08ec84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08ec84c

Please sign in to comment.