Wed, 23 Dec 2020 16:28:35 +0100
VirtualEnv Manager
- improved the handling of virtual environments slightly
<!DOCTYPE html> <html><head> <title>eric6.E5Utilities.E5MutexLocker</title> <meta charset="UTF-8"> <style> body { background: #EDECE6; margin: 0em 1em 10em 1em; color: black; } h1 { color: white; background: #85774A; } h2 { color: white; background: #85774A; } h3 { color: white; background: #9D936E; } h4 { color: white; background: #9D936E; } a { color: #BA6D36; } </style> </head> <body> <a NAME="top" ID="top"></a> <h1>eric6.E5Utilities.E5MutexLocker</h1> <p> Module implementing a context manager locking and unlocking a mutex. </p> <h3>Global Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Classes</h3> <table> <tr> <td><a href="#E5MutexLocker">E5MutexLocker</a></td> <td>Class implementing a context manager locking and unlocking a mutex.</td> </tr> </table> <h3>Functions</h3> <table> <tr><td>None</td></tr> </table> <hr /> <hr /> <a NAME="E5MutexLocker" ID="E5MutexLocker"></a> <h2>E5MutexLocker</h2> <p> Class implementing a context manager locking and unlocking a mutex. </p> <h3>Derived from</h3> contextlib.AbstractContextManager <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> </table> <h3>Class Methods</h3> <table> <tr><td>None</td></tr> </table> <h3>Methods</h3> <table> <tr> <td><a href="#E5MutexLocker.__init__">E5MutexLocker</a></td> <td>Constructor</td> </tr> <tr> <td><a href="#E5MutexLocker.__enter__">__enter__</a></td> <td>Special method called when entering the runtime ccontext.</td> </tr> <tr> <td><a href="#E5MutexLocker.__exit__">__exit__</a></td> <td>Special method called when exiting the runtime ccontext.</td> </tr> </table> <h3>Static Methods</h3> <table> <tr><td>None</td></tr> </table> <a NAME="E5MutexLocker.__init__" ID="E5MutexLocker.__init__"></a> <h4>E5MutexLocker (Constructor)</h4> <b>E5MutexLocker</b>(<i>mutex</i>) <p> Constructor </p> <dl> <dt><i>mutex</i> (QMutex or QRecursiveMutex)</dt> <dd> reference to the mutex to be locked </dd> </dl> <a NAME="E5MutexLocker.__enter__" ID="E5MutexLocker.__enter__"></a> <h4>E5MutexLocker.__enter__</h4> <b>__enter__</b>(<i></i>) <p> Special method called when entering the runtime ccontext. </p> <dl> <dt>Returns:</dt> <dd> reference to the context manager object </dd> </dl> <dl> <dt>Return Type:</dt> <dd> E5OverrideCursor </dd> </dl> <a NAME="E5MutexLocker.__exit__" ID="E5MutexLocker.__exit__"></a> <h4>E5MutexLocker.__exit__</h4> <b>__exit__</b>(<i>exc_type, exc_value, traceback</i>) <p> Special method called when exiting the runtime ccontext. </p> <dl> <dt><i>exc_type</i></dt> <dd> type of an exception raised in the runtime context </dd> <dt><i>exc_value</i></dt> <dd> value of an exception raised in the runtime context </dd> <dt><i>traceback</i></dt> <dd> traceback of an exception raised in the runtime context </dd> </dl> <dl> <dt>Returns:</dt> <dd> always returns None to not suppress any exception </dd> </dl> <dl> <dt>Return Type:</dt> <dd> None </dd> </dl> <div align="right"><a href="#top">Up</a></div> <hr /> </body></html>