Attention

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

wsgidav.rw_lock.ReadWriteLock.acquireWrite

ReadWriteLock.acquireWrite(timeout=None)[source]

Acquire a write lock for the current thread, waiting at most timeout seconds or doing a non-blocking check in case timeout is <= 0.

In case the write lock cannot be serviced due to the deadlock condition mentioned above, a ValueError is raised.

In case timeout is None, the call to acquireWrite blocks until the lock request can be serviced.

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