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