RLock
A reentrant lock shared by every thread and process on the cache: the thread holding it may
Usage
RLock(
cache,
key,
expire=None,
tag=None,
)take it again, and must release it as many times. Another thread or process waits.
Methods
| Name | Description |
|---|---|
| acquire() | Wait for the lock, or take it again if this thread holds it. |
| release() |
Release once. Raises AssertionError if this thread doesn’t hold the lock.
|
acquire()
Wait for the lock, or take it again if this thread holds it.
Usage
acquire()release()
Release once. Raises AssertionError if this thread doesn’t hold the lock.
Usage
release()