From e0feb12611dad08b3a9749b67ad533cd96a61739 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 4 Aug 2011 20:18:44 -0400 Subject: [PATCH] ThreadManager variables should be instance variables not class variables --- sfa/util/threadmanager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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): """ -- 2.47.0