Let's name the workqueue.

This commit is contained in:
Jeremy Fincher 2004-08-18 18:43:03 +00:00
parent 3c866dcee3
commit a1a4a7705b

View File

@ -148,7 +148,9 @@ def MarkovDB():
class MarkovWorkQueue(threading.Thread):
def __init__(self, *args, **kwargs):
threading.Thread.__init__(self)
name = 'Thread #%s (MarkovWorkQueue)' % world.threadsSpawned
world.threadsSpawned += 1
threading.Thread.__init__(self, name=name)
self.db = MarkovDB(*args, **kwargs)
self.q = Queue.Queue()
self.killed = False