|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.DebugClients.Python.MultiprocessingExtension</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric6.DebugClients.Python.MultiprocessingExtension</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a function to patch multiprocessing.Process to support |
|
27 debugging of the process. |
|
28 </p> |
|
29 <h3>Global Attributes</h3> |
|
30 |
|
31 <table> |
|
32 <tr><td>_debugClient</td></tr><tr><td>_originalBootstrap</td></tr><tr><td>_originalProcess</td></tr> |
|
33 </table> |
|
34 <h3>Classes</h3> |
|
35 |
|
36 <table> |
|
37 |
|
38 <tr> |
|
39 <td><a href="#ProcessWrapper">ProcessWrapper</a></td> |
|
40 <td>Wrapper class for multiprocessing.Process.</td> |
|
41 </tr> |
|
42 </table> |
|
43 <h3>Functions</h3> |
|
44 |
|
45 <table> |
|
46 |
|
47 <tr> |
|
48 <td><a href="#patchMultiprocessing">patchMultiprocessing</a></td> |
|
49 <td>Function to patch the multiprocessing module.</td> |
|
50 </tr> |
|
51 </table> |
|
52 <hr /> |
|
53 <hr /> |
|
54 <a NAME="ProcessWrapper" ID="ProcessWrapper"></a> |
|
55 <h2>ProcessWrapper</h2> |
|
56 |
|
57 <p> |
|
58 Wrapper class for multiprocessing.Process. |
|
59 </p> |
|
60 <h3>Derived from</h3> |
|
61 _originalProcess |
|
62 <h3>Class Attributes</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Class Methods</h3> |
|
68 |
|
69 <table> |
|
70 <tr><td>None</td></tr> |
|
71 </table> |
|
72 <h3>Methods</h3> |
|
73 |
|
74 <table> |
|
75 |
|
76 <tr> |
|
77 <td><a href="#ProcessWrapper._bootstrap">_bootstrap</a></td> |
|
78 <td>Wrapper around _bootstrap to start debugger.</td> |
|
79 </tr> |
|
80 </table> |
|
81 <h3>Static Methods</h3> |
|
82 |
|
83 <table> |
|
84 <tr><td>None</td></tr> |
|
85 </table> |
|
86 |
|
87 <a NAME="ProcessWrapper._bootstrap" ID="ProcessWrapper._bootstrap"></a> |
|
88 <h4>ProcessWrapper._bootstrap</h4> |
|
89 <b>_bootstrap</b>(<i>*args, **kwargs</i>) |
|
90 |
|
91 <p> |
|
92 Wrapper around _bootstrap to start debugger. |
|
93 </p> |
|
94 <dl> |
|
95 |
|
96 <dt><i>args</i> (list)</dt> |
|
97 <dd> |
|
98 function arguments |
|
99 </dd> |
|
100 <dt><i>kwargs</i> (dict)</dt> |
|
101 <dd> |
|
102 keyword only arguments |
|
103 </dd> |
|
104 </dl> |
|
105 <dl> |
|
106 <dt>Returns:</dt> |
|
107 <dd> |
|
108 exit code of the process |
|
109 </dd> |
|
110 </dl> |
|
111 <dl> |
|
112 <dt>Return Type:</dt> |
|
113 <dd> |
|
114 int |
|
115 </dd> |
|
116 </dl> |
|
117 <div align="right"><a href="#top">Up</a></div> |
|
118 <hr /> |
|
119 <hr /> |
|
120 <a NAME="patchMultiprocessing" ID="patchMultiprocessing"></a> |
|
121 <h2>patchMultiprocessing</h2> |
|
122 <b>patchMultiprocessing</b>(<i>module, debugClient</i>) |
|
123 |
|
124 <p> |
|
125 Function to patch the multiprocessing module. |
|
126 </p> |
|
127 <dl> |
|
128 |
|
129 <dt><i>module</i> (module)</dt> |
|
130 <dd> |
|
131 reference to the imported module to be patched |
|
132 </dd> |
|
133 <dt><i>debugClient</i> (DebugClient)</dt> |
|
134 <dd> |
|
135 reference to the debug client object |
|
136 </dd> |
|
137 </dl> |
|
138 <div align="right"><a href="#top">Up</a></div> |
|
139 <hr /> |
|
140 </body></html> |