git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a0f194
)
make threadmanager variables instance-specific
author
smbaker
<smbaker@fc8clean.lan>
Thu, 4 Aug 2011 23:12:47 +0000
(16:12 -0700)
committer
smbaker
<smbaker@fc8clean.lan>
Thu, 4 Aug 2011 23:12:47 +0000
(16:12 -0700)
sfa/util/threadmanager.py
[changed mode: 0755->0644]
patch
|
blob
|
history
diff --git
a/sfa/util/threadmanager.py
b/sfa/util/threadmanager.py
old mode 100755
(executable)
new mode 100644
(file)
index
5f80670
..
b47b818
--- 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):
"""