68 <hr /> |
68 <hr /> |
69 <a NAME="DummyThreadWrapper" ID="DummyThreadWrapper"></a> |
69 <a NAME="DummyThreadWrapper" ID="DummyThreadWrapper"></a> |
70 <h2>DummyThreadWrapper</h2> |
70 <h2>DummyThreadWrapper</h2> |
71 |
71 |
72 <p> |
72 <p> |
73 Wrapper class for threading._DummyThread. |
73 Wrapper class for threading._DummyThread. |
74 </p> |
74 </p> |
75 <h3>Derived from</h3> |
75 <h3>Derived from</h3> |
76 module._DummyThread, ThreadWrapper |
76 module._DummyThread, ThreadWrapper |
77 <h3>Class Attributes</h3> |
77 <h3>Class Attributes</h3> |
78 |
78 |
102 <a NAME="DummyThreadWrapper.__init__" ID="DummyThreadWrapper.__init__"></a> |
102 <a NAME="DummyThreadWrapper.__init__" ID="DummyThreadWrapper.__init__"></a> |
103 <h4>DummyThreadWrapper (Constructor)</h4> |
103 <h4>DummyThreadWrapper (Constructor)</h4> |
104 <b>DummyThreadWrapper</b>(<i>*args, **kwargs</i>) |
104 <b>DummyThreadWrapper</b>(<i>*args, **kwargs</i>) |
105 |
105 |
106 <p> |
106 <p> |
107 Constructor |
107 Constructor |
108 </p> |
108 </p> |
109 <div align="right"><a href="#top">Up</a></div> |
109 <div align="right"><a href="#top">Up</a></div> |
110 <hr /> |
110 <hr /> |
111 <hr /> |
111 <hr /> |
112 <a NAME="QRunnableWrapper" ID="QRunnableWrapper"></a> |
112 <a NAME="QRunnableWrapper" ID="QRunnableWrapper"></a> |
113 <h2>QRunnableWrapper</h2> |
113 <h2>QRunnableWrapper</h2> |
114 |
114 |
115 <p> |
115 <p> |
116 Wrapper class for *.QRunnable. |
116 Wrapper class for *.QRunnable. |
117 </p> |
117 </p> |
118 <h3>Derived from</h3> |
118 <h3>Derived from</h3> |
119 module.QRunnable |
119 module.QRunnable |
120 <h3>Class Attributes</h3> |
120 <h3>Class Attributes</h3> |
121 |
121 |
145 <a NAME="QRunnableWrapper.__init__" ID="QRunnableWrapper.__init__"></a> |
145 <a NAME="QRunnableWrapper.__init__" ID="QRunnableWrapper.__init__"></a> |
146 <h4>QRunnableWrapper (Constructor)</h4> |
146 <h4>QRunnableWrapper (Constructor)</h4> |
147 <b>QRunnableWrapper</b>(<i>*args, **kwargs</i>) |
147 <b>QRunnableWrapper</b>(<i>*args, **kwargs</i>) |
148 |
148 |
149 <p> |
149 <p> |
150 Constructor |
150 Constructor |
151 </p> |
151 </p> |
152 <div align="right"><a href="#top">Up</a></div> |
152 <div align="right"><a href="#top">Up</a></div> |
153 <hr /> |
153 <hr /> |
154 <hr /> |
154 <hr /> |
155 <a NAME="QThreadWrapper" ID="QThreadWrapper"></a> |
155 <a NAME="QThreadWrapper" ID="QThreadWrapper"></a> |
156 <h2>QThreadWrapper</h2> |
156 <h2>QThreadWrapper</h2> |
157 |
157 |
158 <p> |
158 <p> |
159 Wrapper class for *.QThread. |
159 Wrapper class for *.QThread. |
160 </p> |
160 </p> |
161 <h3>Derived from</h3> |
161 <h3>Derived from</h3> |
162 module.QThread |
162 module.QThread |
163 <h3>Class Attributes</h3> |
163 <h3>Class Attributes</h3> |
164 |
164 |
188 <a NAME="QThreadWrapper.__init__" ID="QThreadWrapper.__init__"></a> |
188 <a NAME="QThreadWrapper.__init__" ID="QThreadWrapper.__init__"></a> |
189 <h4>QThreadWrapper (Constructor)</h4> |
189 <h4>QThreadWrapper (Constructor)</h4> |
190 <b>QThreadWrapper</b>(<i>*args, **kwargs</i>) |
190 <b>QThreadWrapper</b>(<i>*args, **kwargs</i>) |
191 |
191 |
192 <p> |
192 <p> |
193 Constructor |
193 Constructor |
194 </p> |
194 </p> |
195 <div align="right"><a href="#top">Up</a></div> |
195 <div align="right"><a href="#top">Up</a></div> |
196 <hr /> |
196 <hr /> |
197 <hr /> |
197 <hr /> |
198 <a NAME="ThreadExtension" ID="ThreadExtension"></a> |
198 <a NAME="ThreadExtension" ID="ThreadExtension"></a> |
200 |
200 |
201 <p> |
201 <p> |
202 Class implementing the thread support for the debugger. |
202 Class implementing the thread support for the debugger. |
203 </p> |
203 </p> |
204 <p> |
204 <p> |
205 Provides methods for intercepting thread creation, retriving the running |
205 Provides methods for intercepting thread creation, retrieving the running |
206 threads and their name and state. |
206 threads and their name and state. |
207 </p> |
207 </p> |
208 <h3>Derived from</h3> |
208 <h3>Derived from</h3> |
209 object |
209 object |
210 <h3>Class Attributes</h3> |
210 <h3>Class Attributes</h3> |
240 <tr> |
240 <tr> |
241 <td><a href="#ThreadExtension.dumpThreadList">dumpThreadList</a></td> |
241 <td><a href="#ThreadExtension.dumpThreadList">dumpThreadList</a></td> |
242 <td>Public method to send the list of threads.</td> |
242 <td>Public method to send the list of threads.</td> |
243 </tr> |
243 </tr> |
244 <tr> |
244 <tr> |
245 <td><a href="#ThreadExtension.find_module">find_module</a></td> |
|
246 <td>Public method returning the module loader.</td> |
|
247 </tr> |
|
248 <tr> |
|
249 <td><a href="#ThreadExtension.getExecutedFrame">getExecutedFrame</a></td> |
245 <td><a href="#ThreadExtension.getExecutedFrame">getExecutedFrame</a></td> |
250 <td>Public method to return the currently executed frame.</td> |
246 <td>Public method to return the currently executed frame.</td> |
251 </tr> |
247 </tr> |
252 <tr> |
248 <tr> |
253 <td><a href="#ThreadExtension.load_module">load_module</a></td> |
|
254 <td>Public method to load a module.</td> |
|
255 </tr> |
|
256 <tr> |
|
257 <td><a href="#ThreadExtension.lockClient">lockClient</a></td> |
249 <td><a href="#ThreadExtension.lockClient">lockClient</a></td> |
258 <td>Public method to acquire the lock for this client.</td> |
250 <td>Public method to acquire the lock for this client.</td> |
|
251 </tr> |
|
252 <tr> |
|
253 <td><a href="#ThreadExtension.patchGreenlet">patchGreenlet</a></td> |
|
254 <td>Public method to patch the 'greenlet' module.</td> |
|
255 </tr> |
|
256 <tr> |
|
257 <td><a href="#ThreadExtension.patchPyThread">patchPyThread</a></td> |
|
258 <td>Public method to patch Python _thread (Python3) and thread (Python2) modules.</td> |
|
259 </tr> |
|
260 <tr> |
|
261 <td><a href="#ThreadExtension.patchPyThreading">patchPyThreading</a></td> |
|
262 <td>Public method to patch the Python threading module.</td> |
|
263 </tr> |
|
264 <tr> |
|
265 <td><a href="#ThreadExtension.patchQThread">patchQThread</a></td> |
|
266 <td>Public method to patch the QtCore module's QThread.</td> |
259 </tr> |
267 </tr> |
260 <tr> |
268 <tr> |
261 <td><a href="#ThreadExtension.setCurrentThread">setCurrentThread</a></td> |
269 <td><a href="#ThreadExtension.setCurrentThread">setCurrentThread</a></td> |
262 <td>Public method to set the current thread.</td> |
270 <td>Public method to set the current thread.</td> |
263 </tr> |
271 </tr> |
290 <a NAME="ThreadExtension._bootstrap" ID="ThreadExtension._bootstrap"></a> |
298 <a NAME="ThreadExtension._bootstrap" ID="ThreadExtension._bootstrap"></a> |
291 <h4>ThreadExtension._bootstrap</h4> |
299 <h4>ThreadExtension._bootstrap</h4> |
292 <b>_bootstrap</b>(<i>run</i>) |
300 <b>_bootstrap</b>(<i>run</i>) |
293 |
301 |
294 <p> |
302 <p> |
295 Bootstrap for threading, which reports exceptions correctly. |
303 Bootstrap for threading, which reports exceptions correctly. |
296 </p> |
304 </p> |
297 <dl> |
305 <dl> |
298 |
306 |
299 <dt><i>run</i> (method pointer)</dt> |
307 <dt><i>run</i> (method pointer)</dt> |
300 <dd> |
308 <dd> |
304 <a NAME="ThreadExtension._bootstrapQThread" ID="ThreadExtension._bootstrapQThread"></a> |
312 <a NAME="ThreadExtension._bootstrapQThread" ID="ThreadExtension._bootstrapQThread"></a> |
305 <h4>ThreadExtension._bootstrapQThread</h4> |
313 <h4>ThreadExtension._bootstrapQThread</h4> |
306 <b>_bootstrapQThread</b>(<i>run</i>) |
314 <b>_bootstrapQThread</b>(<i>run</i>) |
307 |
315 |
308 <p> |
316 <p> |
309 Bootstrap for QThread, which reports exceptions correctly. |
317 Bootstrap for QThread, which reports exceptions correctly. |
310 </p> |
318 </p> |
311 <dl> |
319 <dl> |
312 |
320 |
313 <dt><i>run</i> (method pointer)</dt> |
321 <dt><i>run</i> (method pointer)</dt> |
314 <dd> |
322 <dd> |
358 <b>dumpThreadList</b>(<i></i>) |
366 <b>dumpThreadList</b>(<i></i>) |
359 |
367 |
360 <p> |
368 <p> |
361 Public method to send the list of threads. |
369 Public method to send the list of threads. |
362 </p> |
370 </p> |
363 <a NAME="ThreadExtension.find_module" ID="ThreadExtension.find_module"></a> |
|
364 <h4>ThreadExtension.find_module</h4> |
|
365 <b>find_module</b>(<i>fullname, path=None</i>) |
|
366 |
|
367 <p> |
|
368 Public method returning the module loader. |
|
369 </p> |
|
370 <dl> |
|
371 |
|
372 <dt><i>fullname</i> (str)</dt> |
|
373 <dd> |
|
374 name of the module to be loaded |
|
375 </dd> |
|
376 <dt><i>path</i> (str)</dt> |
|
377 <dd> |
|
378 path to resolve the module name |
|
379 </dd> |
|
380 </dl> |
|
381 <dl> |
|
382 <dt>Returns:</dt> |
|
383 <dd> |
|
384 module loader object |
|
385 </dd> |
|
386 </dl> |
|
387 <dl> |
|
388 <dt>Return Type:</dt> |
|
389 <dd> |
|
390 object |
|
391 </dd> |
|
392 </dl> |
|
393 <a NAME="ThreadExtension.getExecutedFrame" ID="ThreadExtension.getExecutedFrame"></a> |
371 <a NAME="ThreadExtension.getExecutedFrame" ID="ThreadExtension.getExecutedFrame"></a> |
394 <h4>ThreadExtension.getExecutedFrame</h4> |
372 <h4>ThreadExtension.getExecutedFrame</h4> |
395 <b>getExecutedFrame</b>(<i>frame</i>) |
373 <b>getExecutedFrame</b>(<i>frame</i>) |
396 |
374 |
397 <p> |
375 <p> |
414 <dt>Return Type:</dt> |
392 <dt>Return Type:</dt> |
415 <dd> |
393 <dd> |
416 frame object |
394 frame object |
417 </dd> |
395 </dd> |
418 </dl> |
396 </dl> |
419 <a NAME="ThreadExtension.load_module" ID="ThreadExtension.load_module"></a> |
|
420 <h4>ThreadExtension.load_module</h4> |
|
421 <b>load_module</b>(<i>fullname</i>) |
|
422 |
|
423 <p> |
|
424 Public method to load a module. |
|
425 </p> |
|
426 <dl> |
|
427 |
|
428 <dt><i>fullname</i> (str)</dt> |
|
429 <dd> |
|
430 name of the module to be loaded |
|
431 </dd> |
|
432 </dl> |
|
433 <dl> |
|
434 <dt>Returns:</dt> |
|
435 <dd> |
|
436 reference to the loaded module |
|
437 </dd> |
|
438 </dl> |
|
439 <dl> |
|
440 <dt>Return Type:</dt> |
|
441 <dd> |
|
442 module |
|
443 </dd> |
|
444 </dl> |
|
445 <a NAME="ThreadExtension.lockClient" ID="ThreadExtension.lockClient"></a> |
397 <a NAME="ThreadExtension.lockClient" ID="ThreadExtension.lockClient"></a> |
446 <h4>ThreadExtension.lockClient</h4> |
398 <h4>ThreadExtension.lockClient</h4> |
447 <b>lockClient</b>(<i>blocking=True</i>) |
399 <b>lockClient</b>(<i>blocking=True</i>) |
448 |
400 |
449 <p> |
401 <p> |
466 <dt>Return Type:</dt> |
418 <dt>Return Type:</dt> |
467 <dd> |
419 <dd> |
468 bool |
420 bool |
469 </dd> |
421 </dd> |
470 </dl> |
422 </dl> |
|
423 <a NAME="ThreadExtension.patchGreenlet" ID="ThreadExtension.patchGreenlet"></a> |
|
424 <h4>ThreadExtension.patchGreenlet</h4> |
|
425 <b>patchGreenlet</b>(<i>module</i>) |
|
426 |
|
427 <p> |
|
428 Public method to patch the 'greenlet' module. |
|
429 </p> |
|
430 <dl> |
|
431 |
|
432 <dt><i>module</i> (module)</dt> |
|
433 <dd> |
|
434 reference to the imported module to be patched |
|
435 </dd> |
|
436 </dl> |
|
437 <dl> |
|
438 <dt>Returns:</dt> |
|
439 <dd> |
|
440 flag indicating that the module was processed |
|
441 </dd> |
|
442 </dl> |
|
443 <dl> |
|
444 <dt>Return Type:</dt> |
|
445 <dd> |
|
446 bool |
|
447 </dd> |
|
448 </dl> |
|
449 <a NAME="ThreadExtension.patchPyThread" ID="ThreadExtension.patchPyThread"></a> |
|
450 <h4>ThreadExtension.patchPyThread</h4> |
|
451 <b>patchPyThread</b>(<i>module</i>) |
|
452 |
|
453 <p> |
|
454 Public method to patch Python _thread (Python3) and thread (Python2) |
|
455 modules. |
|
456 </p> |
|
457 <dl> |
|
458 |
|
459 <dt><i>module</i> (module)</dt> |
|
460 <dd> |
|
461 reference to the imported module to be patched |
|
462 </dd> |
|
463 </dl> |
|
464 <a NAME="ThreadExtension.patchPyThreading" ID="ThreadExtension.patchPyThreading"></a> |
|
465 <h4>ThreadExtension.patchPyThreading</h4> |
|
466 <b>patchPyThreading</b>(<i>module</i>) |
|
467 |
|
468 <p> |
|
469 Public method to patch the Python threading module. |
|
470 </p> |
|
471 <dl> |
|
472 |
|
473 <dt><i>module</i> (module)</dt> |
|
474 <dd> |
|
475 reference to the imported module to be patched |
|
476 </dd> |
|
477 </dl> |
|
478 <a NAME="ThreadExtension.patchQThread" ID="ThreadExtension.patchQThread"></a> |
|
479 <h4>ThreadExtension.patchQThread</h4> |
|
480 <b>patchQThread</b>(<i>module</i>) |
|
481 |
|
482 <p> |
|
483 Public method to patch the QtCore module's QThread. |
|
484 </p> |
|
485 <dl> |
|
486 |
|
487 <dt><i>module</i> (module)</dt> |
|
488 <dd> |
|
489 reference to the imported module to be patched |
|
490 </dd> |
|
491 </dl> |
471 <a NAME="ThreadExtension.setCurrentThread" ID="ThreadExtension.setCurrentThread"></a> |
492 <a NAME="ThreadExtension.setCurrentThread" ID="ThreadExtension.setCurrentThread"></a> |
472 <h4>ThreadExtension.setCurrentThread</h4> |
493 <h4>ThreadExtension.setCurrentThread</h4> |
473 <b>setCurrentThread</b>(<i>threadId</i>) |
494 <b>setCurrentThread</b>(<i>threadId</i>) |
474 |
495 |
475 <p> |
496 <p> |
515 <hr /> |
536 <hr /> |
516 <a NAME="ThreadWrapper" ID="ThreadWrapper"></a> |
537 <a NAME="ThreadWrapper" ID="ThreadWrapper"></a> |
517 <h2>ThreadWrapper</h2> |
538 <h2>ThreadWrapper</h2> |
518 |
539 |
519 <p> |
540 <p> |
520 Wrapper class for threading.Thread. |
541 Wrapper class for threading.Thread. |
521 </p> |
542 </p> |
522 <h3>Derived from</h3> |
543 <h3>Derived from</h3> |
523 module.Thread |
544 module.Thread |
524 <h3>Class Attributes</h3> |
545 <h3>Class Attributes</h3> |
525 |
546 |
549 <a NAME="ThreadWrapper.__init__" ID="ThreadWrapper.__init__"></a> |
570 <a NAME="ThreadWrapper.__init__" ID="ThreadWrapper.__init__"></a> |
550 <h4>ThreadWrapper (Constructor)</h4> |
571 <h4>ThreadWrapper (Constructor)</h4> |
551 <b>ThreadWrapper</b>(<i>*args, **kwargs</i>) |
572 <b>ThreadWrapper</b>(<i>*args, **kwargs</i>) |
552 |
573 |
553 <p> |
574 <p> |
554 Constructor |
575 Constructor |
555 </p> |
576 </p> |
556 <div align="right"><a href="#top">Up</a></div> |
577 <div align="right"><a href="#top">Up</a></div> |
557 <hr /> |
578 <hr /> |
558 <hr /> |
579 <hr /> |
559 <a NAME="TimerWrapper" ID="TimerWrapper"></a> |
580 <a NAME="TimerWrapper" ID="TimerWrapper"></a> |
560 <h2>TimerWrapper</h2> |
581 <h2>TimerWrapper</h2> |
561 |
582 |
562 <p> |
583 <p> |
563 Wrapper class for threading.(_)Timer. |
584 Wrapper class for threading.(_)Timer. |
564 </p> |
585 </p> |
565 <h3>Derived from</h3> |
586 <h3>Derived from</h3> |
566 timer, ThreadWrapper |
587 timer, ThreadWrapper |
567 <h3>Class Attributes</h3> |
588 <h3>Class Attributes</h3> |
568 |
589 |
592 <a NAME="TimerWrapper.__init__" ID="TimerWrapper.__init__"></a> |
613 <a NAME="TimerWrapper.__init__" ID="TimerWrapper.__init__"></a> |
593 <h4>TimerWrapper (Constructor)</h4> |
614 <h4>TimerWrapper (Constructor)</h4> |
594 <b>TimerWrapper</b>(<i>interval, function, *args, **kwargs</i>) |
615 <b>TimerWrapper</b>(<i>interval, function, *args, **kwargs</i>) |
595 |
616 |
596 <p> |
617 <p> |
597 Constructor |
618 Constructor |
598 </p> |
619 </p> |
599 <div align="right"><a href="#top">Up</a></div> |
620 <div align="right"><a href="#top">Up</a></div> |
600 <hr /> |
621 <hr /> |
601 </body></html> |
622 </body></html> |