Home
last modified time | relevance | path

Searched refs:pending_lock (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Python/
Dceval.c205 static PyThread_type_lock pending_lock = 0; /* for pending calls */ variable
234 if (!pending_lock) in PyEval_InitThreads()
235 pending_lock = PyThread_allocate_lock(); in PyEval_InitThreads()
305 pending_lock = PyThread_allocate_lock(); in PyEval_ReInitThreads()
425 PyThread_type_lock lock = pending_lock; in Py_AddPendingCall()
470 if (!pending_lock) { in Py_MakePendingCalls()
472 pending_lock = PyThread_allocate_lock(); in Py_MakePendingCalls()
473 if (pending_lock == NULL) in Py_MakePendingCalls()
491 PyThread_acquire_lock(pending_lock, WAIT_LOCK); in Py_MakePendingCalls()
504 PyThread_release_lock(pending_lock); in Py_MakePendingCalls()
/external/python/cpython2/Python/
Dceval.c239 static PyThread_type_lock pending_lock = 0; /* for pending calls */ variable
311 pending_lock = PyThread_allocate_lock(); in PyEval_ReInitThreads()
412 PyThread_type_lock lock = pending_lock; in Py_AddPendingCall()
457 if (!pending_lock) { in Py_MakePendingCalls()
459 pending_lock = PyThread_allocate_lock(); in Py_MakePendingCalls()
460 if (pending_lock == NULL) in Py_MakePendingCalls()
478 PyThread_acquire_lock(pending_lock, WAIT_LOCK); in Py_MakePendingCalls()
488 PyThread_release_lock(pending_lock); in Py_MakePendingCalls()