def run(self):
# threading.Thread.run(self)
#log(' p-running ' + str( self.work_list ))
self.running = True
# Rather than running forever, check to see if it is still OK
while self.running:
try:
# Don't block
#item = self.queue.get(block=False)
self.do_work()
self.ev.set()
#work dome end
log( ' p-all done ' )
self.stop()
except Empty:
# Allow other stuff to run
time.sleep(0.1)
评论列表
文章目录