(mutex)
A context manager for locking an instance of a QMutex.
A context manager for locking an instance of a QMutex.
A context manager for locking an instance of a QMutex .
def locked(mutex):
    """
    A context manager for locking an instance of a QMutex.
    """
    mutex.lock()
    try:
        yield
    finally:
        mutex.unlock()
def locked ( mutex ) : mutex . lock ( ) try : yield finally : mutex . unlock ( )