Home
last modified time | relevance | path

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

/external/python/cpython2/Modules/
Dthreadmodule.c24 PyThread_type_lock lock_lock; member
33 if (self->lock_lock != NULL) { in lock_dealloc()
35 PyThread_acquire_lock(self->lock_lock, 0); in lock_dealloc()
36 PyThread_release_lock(self->lock_lock); in lock_dealloc()
38 PyThread_free_lock(self->lock_lock); in lock_dealloc()
52 i = PyThread_acquire_lock(self->lock_lock, i); in lock_PyThread_acquire_lock()
73 if (PyThread_acquire_lock(self->lock_lock, 0)) { in lock_PyThread_release_lock()
74 PyThread_release_lock(self->lock_lock); in lock_PyThread_release_lock()
79 PyThread_release_lock(self->lock_lock); in lock_PyThread_release_lock()
95 if (PyThread_acquire_lock(self->lock_lock, 0)) { in lock_locked_lock()
[all …]
/external/python/cpython3/Modules/
D_threadmodule.c26 PyThread_type_lock lock_lock; member
36 if (self->lock_lock != NULL) { in lock_dealloc()
39 PyThread_release_lock(self->lock_lock); in lock_dealloc()
40 PyThread_free_lock(self->lock_lock); in lock_dealloc()
151 r = acquire_timed(self->lock_lock, timeout); in lock_PyThread_acquire_lock()
181 PyThread_release_lock(self->lock_lock); in lock_PyThread_release_lock()
544 self->lock_lock = PyThread_allocate_lock(); in newlockobject()
547 if (self->lock_lock == NULL) { in newlockobject()
1193 PyThread_release_lock(lock->lock_lock); in release_sentinel()