Changeset 642
- Timestamp:
- 07/22/03 10:52:16 (5 years ago)
- Files:
-
- trunk/RBFoundation/RBFoundation/ThreadTools.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBFoundation/RBFoundation/ThreadTools.py
r641 r642 33 33 class DispatchThread(threading.Thread): 34 34 def __init__(self): 35 self.workqueue = Queue.Queue(0) 35 36 self.thread = threading.Thread(None, self._OnThreadExecute) 36 self. workqueue = Queue.Queue(0)37 self.thread.setDaemon(True) 37 38 38 39 def CallLater(self, callable, *args, **kw): 39 40 self.workqueue.put((callable, args, kw), True) 41 if not self.thread.isAlive(): 42 self.thread.start() 40 43 41 44 def _OnThreadExecute(self):
