eric7.EricUtilities.EricMutexLocker
Module implementing a context manager locking and unlocking a mutex.
Global Attributes
Classes
| EricMutexLocker | Class implementing a context manager locking and unlocking a mutex. | 
Functions
EricMutexLocker
    Class implementing a context manager locking and unlocking a mutex.
Derived from
contextlib.AbstractContextManager
Class Attributes
Class Methods
Methods
| EricMutexLocker | Constructor | 
| __enter__ | Special method called when entering the runtime ccontext. | 
| __exit__ | Special method called when exiting the runtime ccontext. | 
Static Methods
EricMutexLocker (Constructor)
EricMutexLocker(mutex)
        Constructor
- mutex (QMutex or QRecursiveMutex)
- 
reference to the mutex to be locked
EricMutexLocker.__enter__
__enter__()
        Special method called when entering the runtime ccontext.
- Return:
- 
reference to the context manager object
- Return Type:
- 
EricOverrideCursor
EricMutexLocker.__exit__
__exit__(exc_type, exc_value, traceback)
        Special method called when exiting the runtime ccontext.
- exc_type (Class)
- 
type of an exception raised in the runtime context
- exc_value (Exception)
- 
value of an exception raised in the runtime context
- traceback (Traceback)
- 
traceback of an exception raised in the runtime
            context
- Return:
- 
always returns None to not suppress any exception
- Return Type:
- 
None