Meaningfull task names
Thomas Klaeger <[email protected]> Mon, 20 Sep 2004 12:36:52 +0200
| Newsgroups | gmane.comp.pythin.pyds.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--------------030504010007020609090400
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
To aid in debugging I changed Tool.py and ShutdownTool.py to give
meaningfull names to the created threads.
--------------030504010007020609090400
Content-Type: text/plain;
name="taskname.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="taskname.diff"
Index: PyDS/ShutdownTool.py
===================================================================
RCS file: /pyds/PyDS/PyDS/ShutdownTool.py,v
retrieving revision 1.5
diff -u -r1.5 ShutdownTool.py
--- PyDS/ShutdownTool.py 31 May 2004 13:26:28 -0000 1.5
+++ PyDS/ShutdownTool.py 20 Sep 2004 10:15:59 -0000
@@ -58,6 +58,7 @@
self.background = threading.Thread(
target=thunk,
args=[],
+ name='shutdown',
kwargs={}
)
self.background.start()
Index: PyDS/Tool.py
===================================================================
RCS file: /pyds/PyDS/PyDS/Tool.py,v
retrieving revision 1.195
diff -u -r1.195 Tool.py
--- PyDS/Tool.py 14 Sep 2004 08:57:38 -0000 1.195
+++ PyDS/Tool.py 20 Sep 2004 10:15:24 -0000
@@ -827,6 +827,7 @@
self.background = threading.Thread(
target=self.loop,
args=[],
+ name='pyds-processor',
kwargs={}
)
_flet.clone(self.background)
@@ -1335,6 +1336,7 @@
background = threading.Thread(
target=thunk,
args=[self, status],
+ name=self.name,
kwargs={}
)
self._mythread = background
--------------030504010007020609090400--