- ReadWriteLock.acquire_write(*, timeout=None)¶
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 acquire_write blocks until the lock request can be serviced.
In case the timeout expires before the lock could be serviced, a RuntimeError is thrown.