mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-23 09:00:46 +01:00
Let's name the workqueue.
This commit is contained in:
parent
3c866dcee3
commit
a1a4a7705b
@ -148,7 +148,9 @@ def MarkovDB():
|
|||||||
|
|
||||||
class MarkovWorkQueue(threading.Thread):
|
class MarkovWorkQueue(threading.Thread):
|
||||||
def __init__(self, *args, **kwargs):
|
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.db = MarkovDB(*args, **kwargs)
|
||||||
self.q = Queue.Queue()
|
self.q = Queue.Queue()
|
||||||
self.killed = False
|
self.killed = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user