ID EN
Threading

RLock

Python 3.11

This class implements reentrant lock objects. 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.

Syntax

PYTHON
class threading.RLock

See Also

RuntimeError