eric6/Documentation/Source/eric6.DebugClients.Python.ThreadExtension.html

changeset 7887
c1588f5a83e9
parent 7641
21ea4fd50b0a
child 7989
a21d673a8f99
--- a/eric6/Documentation/Source/eric6.DebugClients.Python.ThreadExtension.html	Thu Dec 17 14:30:46 2020 +0100
+++ b/eric6/Documentation/Source/eric6.DebugClients.Python.ThreadExtension.html	Thu Dec 17 14:40:06 2020 +0100
@@ -70,7 +70,7 @@
 <h2>DummyThreadWrapper</h2>
 
 <p>
-                Wrapper class for threading._DummyThread.
+            Wrapper class for threading._DummyThread.
 </p>
 <h3>Derived from</h3>
 module._DummyThread, ThreadWrapper
@@ -104,7 +104,7 @@
 <b>DummyThreadWrapper</b>(<i>*args, **kwargs</i>)
 
 <p>
-                    Constructor
+                Constructor
 </p>
 <div align="right"><a href="#top">Up</a></div>
 <hr />
@@ -113,7 +113,7 @@
 <h2>QRunnableWrapper</h2>
 
 <p>
-                Wrapper class for *.QRunnable.
+            Wrapper class for *.QRunnable.
 </p>
 <h3>Derived from</h3>
 module.QRunnable
@@ -147,7 +147,7 @@
 <b>QRunnableWrapper</b>(<i>*args, **kwargs</i>)
 
 <p>
-                    Constructor
+                Constructor
 </p>
 <div align="right"><a href="#top">Up</a></div>
 <hr />
@@ -156,7 +156,7 @@
 <h2>QThreadWrapper</h2>
 
 <p>
-                Wrapper class for *.QThread.
+            Wrapper class for *.QThread.
 </p>
 <h3>Derived from</h3>
 module.QThread
@@ -190,7 +190,7 @@
 <b>QThreadWrapper</b>(<i>*args, **kwargs</i>)
 
 <p>
-                    Constructor
+                Constructor
 </p>
 <div align="right"><a href="#top">Up</a></div>
 <hr />
@@ -202,7 +202,7 @@
     Class implementing the thread support for the debugger.
 </p>
 <p>
-    Provides methods for intercepting thread creation, retriving the running
+    Provides methods for intercepting thread creation, retrieving the running
     threads and their name and state.
 </p>
 <h3>Derived from</h3>
@@ -242,20 +242,28 @@
 <td>Public method to send the list of threads.</td>
 </tr>
 <tr>
-<td><a href="#ThreadExtension.find_module">find_module</a></td>
-<td>Public method returning the module loader.</td>
-</tr>
-<tr>
 <td><a href="#ThreadExtension.getExecutedFrame">getExecutedFrame</a></td>
 <td>Public method to return the currently executed frame.</td>
 </tr>
 <tr>
-<td><a href="#ThreadExtension.load_module">load_module</a></td>
-<td>Public method to load a module.</td>
+<td><a href="#ThreadExtension.lockClient">lockClient</a></td>
+<td>Public method to acquire the lock for this client.</td>
+</tr>
+<tr>
+<td><a href="#ThreadExtension.patchGreenlet">patchGreenlet</a></td>
+<td>Public method to patch the 'greenlet' module.</td>
 </tr>
 <tr>
-<td><a href="#ThreadExtension.lockClient">lockClient</a></td>
-<td>Public method to acquire the lock for this client.</td>
+<td><a href="#ThreadExtension.patchPyThread">patchPyThread</a></td>
+<td>Public method to patch Python _thread (Python3) and thread (Python2) modules.</td>
+</tr>
+<tr>
+<td><a href="#ThreadExtension.patchPyThreading">patchPyThreading</a></td>
+<td>Public method to patch the Python threading module.</td>
+</tr>
+<tr>
+<td><a href="#ThreadExtension.patchQThread">patchQThread</a></td>
+<td>Public method to patch the QtCore module's QThread.</td>
 </tr>
 <tr>
 <td><a href="#ThreadExtension.setCurrentThread">setCurrentThread</a></td>
@@ -292,7 +300,7 @@
 <b>_bootstrap</b>(<i>run</i>)
 
 <p>
-                Bootstrap for threading, which reports exceptions correctly.
+            Bootstrap for threading, which reports exceptions correctly.
 </p>
 <dl>
 
@@ -306,7 +314,7 @@
 <b>_bootstrapQThread</b>(<i>run</i>)
 
 <p>
-                Bootstrap for QThread, which reports exceptions correctly.
+            Bootstrap for QThread, which reports exceptions correctly.
 </p>
 <dl>
 
@@ -360,36 +368,6 @@
 <p>
         Public method to send the list of threads.
 </p>
-<a NAME="ThreadExtension.find_module" ID="ThreadExtension.find_module"></a>
-<h4>ThreadExtension.find_module</h4>
-<b>find_module</b>(<i>fullname, path=None</i>)
-
-<p>
-        Public method returning the module loader.
-</p>
-<dl>
-
-<dt><i>fullname</i> (str)</dt>
-<dd>
-name of the module to be loaded
-</dd>
-<dt><i>path</i> (str)</dt>
-<dd>
-path to resolve the module name
-</dd>
-</dl>
-<dl>
-<dt>Returns:</dt>
-<dd>
-module loader object
-</dd>
-</dl>
-<dl>
-<dt>Return Type:</dt>
-<dd>
-object
-</dd>
-</dl>
 <a NAME="ThreadExtension.getExecutedFrame" ID="ThreadExtension.getExecutedFrame"></a>
 <h4>ThreadExtension.getExecutedFrame</h4>
 <b>getExecutedFrame</b>(<i>frame</i>)
@@ -416,32 +394,6 @@
 frame object
 </dd>
 </dl>
-<a NAME="ThreadExtension.load_module" ID="ThreadExtension.load_module"></a>
-<h4>ThreadExtension.load_module</h4>
-<b>load_module</b>(<i>fullname</i>)
-
-<p>
-        Public method to load a module.
-</p>
-<dl>
-
-<dt><i>fullname</i> (str)</dt>
-<dd>
-name of the module to be loaded
-</dd>
-</dl>
-<dl>
-<dt>Returns:</dt>
-<dd>
-reference to the loaded module
-</dd>
-</dl>
-<dl>
-<dt>Return Type:</dt>
-<dd>
-module
-</dd>
-</dl>
 <a NAME="ThreadExtension.lockClient" ID="ThreadExtension.lockClient"></a>
 <h4>ThreadExtension.lockClient</h4>
 <b>lockClient</b>(<i>blocking=True</i>)
@@ -468,6 +420,75 @@
 bool
 </dd>
 </dl>
+<a NAME="ThreadExtension.patchGreenlet" ID="ThreadExtension.patchGreenlet"></a>
+<h4>ThreadExtension.patchGreenlet</h4>
+<b>patchGreenlet</b>(<i>module</i>)
+
+<p>
+        Public method to patch the 'greenlet' module.
+</p>
+<dl>
+
+<dt><i>module</i> (module)</dt>
+<dd>
+reference to the imported module to be patched
+</dd>
+</dl>
+<dl>
+<dt>Returns:</dt>
+<dd>
+flag indicating that the module was processed
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+bool
+</dd>
+</dl>
+<a NAME="ThreadExtension.patchPyThread" ID="ThreadExtension.patchPyThread"></a>
+<h4>ThreadExtension.patchPyThread</h4>
+<b>patchPyThread</b>(<i>module</i>)
+
+<p>
+        Public method to patch Python _thread (Python3) and thread (Python2)
+        modules.
+</p>
+<dl>
+
+<dt><i>module</i> (module)</dt>
+<dd>
+reference to the imported module to be patched
+</dd>
+</dl>
+<a NAME="ThreadExtension.patchPyThreading" ID="ThreadExtension.patchPyThreading"></a>
+<h4>ThreadExtension.patchPyThreading</h4>
+<b>patchPyThreading</b>(<i>module</i>)
+
+<p>
+        Public method to patch the Python threading module.
+</p>
+<dl>
+
+<dt><i>module</i> (module)</dt>
+<dd>
+reference to the imported module to be patched
+</dd>
+</dl>
+<a NAME="ThreadExtension.patchQThread" ID="ThreadExtension.patchQThread"></a>
+<h4>ThreadExtension.patchQThread</h4>
+<b>patchQThread</b>(<i>module</i>)
+
+<p>
+        Public method to patch the QtCore module's QThread.
+</p>
+<dl>
+
+<dt><i>module</i> (module)</dt>
+<dd>
+reference to the imported module to be patched
+</dd>
+</dl>
 <a NAME="ThreadExtension.setCurrentThread" ID="ThreadExtension.setCurrentThread"></a>
 <h4>ThreadExtension.setCurrentThread</h4>
 <b>setCurrentThread</b>(<i>threadId</i>)
@@ -517,7 +538,7 @@
 <h2>ThreadWrapper</h2>
 
 <p>
-                Wrapper class for threading.Thread.
+            Wrapper class for threading.Thread.
 </p>
 <h3>Derived from</h3>
 module.Thread
@@ -551,7 +572,7 @@
 <b>ThreadWrapper</b>(<i>*args, **kwargs</i>)
 
 <p>
-                    Constructor
+                Constructor
 </p>
 <div align="right"><a href="#top">Up</a></div>
 <hr />
@@ -560,7 +581,7 @@
 <h2>TimerWrapper</h2>
 
 <p>
-                Wrapper class for threading.(_)Timer.
+            Wrapper class for threading.(_)Timer.
 </p>
 <h3>Derived from</h3>
 timer, ThreadWrapper
@@ -594,7 +615,7 @@
 <b>TimerWrapper</b>(<i>interval, function, *args, **kwargs</i>)
 
 <p>
-                    Constructor
+                Constructor
 </p>
 <div align="right"><a href="#top">Up</a></div>
 <hr />

eric ide

mercurial