make threadmanager variables instance-specific
authorsmbaker <smbaker@fc8clean.lan>
Thu, 4 Aug 2011 23:12:47 +0000 (16:12 -0700)
committersmbaker <smbaker@fc8clean.lan>
Thu, 4 Aug 2011 23:12:47 +0000 (16:12 -0700)
sfa/util/threadmanager.py [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 5f80670..b47b818
@@ -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):
         """