aboutsummaryrefslogtreecommitdiff
path: root/operationscore/ThreadedSmootCoreObject.py
diff options
context:
space:
mode:
authorGravatar Thomas B Thompson <tbent@spice.(none)>2011-01-04 00:04:05 -0500
committerGravatar Thomas B Thompson <tbent@spice.(none)>2011-01-04 00:04:05 -0500
commit134de4472d3f2fa913944770595de9221dd27fdf (patch)
treecf83e29a1ef4931a15f9b30125fedbd8fba8caf9 /operationscore/ThreadedSmootCoreObject.py
parentf9aeaf10e3c9077504a78374640e79415734546b (diff)
worked on profiling, made a bunch of changes, huge speedup!
Diffstat (limited to 'operationscore/ThreadedSmootCoreObject.py')
-rw-r--r--operationscore/ThreadedSmootCoreObject.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/operationscore/ThreadedSmootCoreObject.py b/operationscore/ThreadedSmootCoreObject.py
new file mode 100644
index 0000000..90611bc
--- /dev/null
+++ b/operationscore/ThreadedSmootCoreObject.py
@@ -0,0 +1,14 @@
+import pdb
+import threading
+import thread
+import util.Config as configGetter
+from operationscore.SmootCoreObject import SmootCoreObject
+class ThreadedSmootCoreObject(SmootCoreObject, threading.Thread):
+ def __init__(self, argDict, skipValidation = False):
+ self.argDict = argDict
+ self.validateArgs(self.className()+'.params')
+ self.lock = thread.allocate_lock()
+ threading.Thread.__init__(self)
+ self.init() #call init of inheriting class
+ # self.__setitem__ = self.argDict.__setitem__
+ # self.__getitem__ = self.argDict.__getitem__