class documentation

class WriteRWLock(object): (source)

Constructor: WriteRWLock(rwLock)

View In Hierarchy

Context Manager class for ReadWriteLock.

Method __enter__ Context Manager method to enter the block.
Method __exit__ Context Manager method to exit the block.
Method __init__ Initialize the WriteRWLock object.
Instance Variable rwLock ReadWriteLock object.
def __enter__(self) -> WriteRWLock: (source)

Context Manager method to enter the block.

This acquires a write lock. Blocks until there are no acquired read or write locks.

Returns
WriteRWLockA WriteRWLock context manager object.
def __exit__(self, exc_type, exc_value, traceback) -> bool: (source)

Context Manager method to exit the block.

This releases a write lock.

Returns
boolAlways False.
def __init__(self, rwLock: ReadWriteLock): (source)

Initialize the WriteRWLock object.

ReadWriteLock object.