From a1a4a7705b4be9e06952de12d76558e970309212 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 18 Aug 2004 18:43:03 +0000 Subject: [PATCH] Let's name the workqueue. --- plugins/Markov.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Markov.py b/plugins/Markov.py index 9d97db0d8..95ac5ffcd 100644 --- a/plugins/Markov.py +++ b/plugins/Markov.py @@ -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