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.
()
| 124 | Lock = _LockType |
| 125 | |
| 126 | def RLock(): |
| 127 | """Factory function that returns a new reentrant lock. |
| 128 | |
| 129 | A reentrant lock must be released by the thread that acquired it. Once a |
| 130 | thread has acquired a reentrant lock, the same thread may acquire it again |
| 131 | without blocking; the thread must release it once for each time it has |
| 132 | acquired it. |
| 133 | |
| 134 | """ |
| 135 | if _CRLock is None: |
| 136 | return _PyRLock() |
| 137 | return _CRLock() |
| 138 | |
| 139 | class _RLock: |
| 140 | """This class implements reentrant lock objects. |
no outgoing calls
no test coverage detected
searching dependent graphs…