mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
use atomic structures in non-thread version
This commit is contained in:
parent
fa8932e040
commit
08ec84cf72
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue