PyDocs

Nav

Concurrent Execution

RLock

threading

class (source) not WASI
Factory function that returns a new reentrant lock.

A reentrant lock must be released by the thread that acquired it. Once a
thread has acquired a reentrant lock, the same thread may acquire it again
without blocking; the thread must release it once for each time it has
acquired it.
Members of RLock

a

acquire
Acquire a lock, blocking or non-blocking.

l

locked
Return a boolean indicating whether this object is locked right now.

r

release
Release a lock, decrementing the recursion level.
0 Examples
No examples for threading/RLock.
See Also
No see-alsos for threading/RLock
0 Notes
No notes for RLock