wsgidav.rw_lock.ReadWriteLock.acquire_read¶
-
ReadWriteLock.
acquire_read
(timeout=None)[source]¶ Acquire a read lock for the current thread, waiting at most timeout seconds or doing a non-blocking check in case timeout is <= 0.
In case timeout is None, the call to acquire_read blocks until the lock request can be serviced.
In case the timeout expires before the lock could be serviced, a RuntimeError is thrown.