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