From: Tony Mack Date: Fri, 5 Aug 2011 00:18:44 +0000 (-0400) Subject: ThreadManager variables should be instance variables not class variables X-Git-Tag: sfa-1.0-30~17 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e0feb12611dad08b3a9749b67ad533cd96a61739;p=sfa.git ThreadManager variables should be instance variables not class variables --- diff --git a/sfa/util/threadmanager.py b/sfa/util/threadmanager.py index 5f806709..b47b8186 100755 --- a/sfa/util/threadmanager.py +++ b/sfa/util/threadmanager.py @@ -31,9 +31,11 @@ class ThreadManager: ThreadManager executes a callable in a thread and stores the result in a thread safe queue. """ - results = Queue() - errors = Queue() - threads = [] + + def __init__(self): + self.results = Queue() + self.errors = Queue() + self.threads = [] def run (self, method, *args, **kwds): """