Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.rw_lock.ReadWriteLock.acquireRead

ReadWriteLock.acquireRead(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 acquireRead blocks until the lock request can be serviced.

In case the timeout expires before the lock could be serviced, a RuntimeError is thrown.