Package SmootLight :: Package operationscore :: Module ThreadedSmootCoreObject
[hide private]
[frames] | no frames]

Source Code for Module SmootLight.operationscore.ThreadedSmootCoreObject

 1  import pdb 
 2  import threading 
 3  import thread 
 4  import util.Config as configGetter 
 5  from operationscore.SmootCoreObject import SmootCoreObject 
6 -class ThreadedSmootCoreObject(SmootCoreObject, threading.Thread):
7 """ThreadedSmootCoreObject is a version of SmootCoreObject for objects that want to run on their 8 own thread"""
9 - def __init__(self, argDict, skipValidation = False):
10 SmootCoreObject.__init__(self, argDict, skipValidation) 11 threading.Thread.__init__(self) 12 self.daemon = True #This kills this thread when the main thread stops
13