Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/
D_threadmodule.c286 unsigned long rlock_count; member
299 if (self->rlock_count > 0) in rlock_dealloc()
318 if (self->rlock_count > 0 && tid == self->rlock_owner) { in rlock_acquire()
319 unsigned long count = self->rlock_count + 1; in rlock_acquire()
320 if (count <= self->rlock_count) { in rlock_acquire()
325 self->rlock_count = count; in rlock_acquire()
330 assert(self->rlock_count == 0); in rlock_acquire()
332 self->rlock_count = 1; in rlock_acquire()
362 if (self->rlock_count == 0 || self->rlock_owner != tid) { in rlock_release()
367 if (--self->rlock_count == 0) { in rlock_release()
[all …]