Example #1
0
 def __init__(self, interval, function, args=[], kwargs={}):
     Thread.__init__(self)
     self.interval = interval
     self.function = function
     self.args = args
     self.kwargs = kwargs
     self.finished = Event()
Example #2
0
 def __init__(self, interval, function, args=[], kwargs={}):
     Thread.__init__(self)
     self.interval = interval
     self.function = function
     self.args = args
     self.kwargs = kwargs
     self.finished = Event()
Example #3
0
 def __init__(self):
     if java.lang.Thread.currentThread().name == "main":
         # Do not clobber the thread name if the user set it to
         # something different
         kw = dict(name="MainThread")
     else:
         kw = {}
     Thread.__init__(self, **kw)
     import atexit
     atexit.register(self.__exitfunc)
Example #4
0
 def __init__(self):
     if java.lang.Thread.currentThread().name == "main":
         # Do not clobber the thread name if the user set it to
         # something different
         kw = dict(name="MainThread")
     else:
         kw = {}
     Thread.__init__(self, **kw)
     import atexit
     atexit.register(self.__exitfunc)
Example #5
0
    def __init__(self, tName, workerConfig):
        JThread.__init__(self)

        self.logger = Logger.getLogger("wtGundamWarrior")
        # self.logger.setLevel(Level.DEBUG)

        self.config = workerConfig
        self.wq = self.config.workerQueue
        self.threadName = tName
        self.stopThread = False
        self.wrkItmsProcessed = 0
Example #6
0
    def __init__(self, tName, workerConfig):
        JThread.__init__(self)

        self.logger = Logger.getLogger("wtGundamWarrior")
        # self.logger.setLevel(Level.DEBUG)

        self.config = workerConfig
        self.wq = self.config.workerQueue
        self.threadName = tName
        self.stopThread = False
        self.wrkItmsProcessed = 0
Example #7
0
    def __init__(self, tName, workerConfig):
        JThread.__init__(self)

        self.logger = Logger.getLogger("MyWorker")
        # self.logger.setLevel(Level.DEBUG)

        self.threadName        = tName
        self.thread         = None
        self.stopProc       = False
        self.wasStopped     = False
        self.wasInterrupted = False

        self.config = workerConfig
        self.loops  = self.config.loops
        self.cvTest = self.config.cvTest
        self.cv     = self.config.cv
        self.cvWait = self.config.cvWait

        self.logger.debug("Looping Worker Created: {}".format(tName))
Example #8
0
    def __init__(self, tName, workerConfig):
        JThread.__init__(self)

        self.logger = Logger.getLogger("MyWorker")
        # self.logger.setLevel(Level.DEBUG)

        self.threadName = tName
        self.thread = None
        self.stopProc = False
        self.wasStopped = False
        self.wasInterrupted = False

        self.config = workerConfig
        self.loops = self.config.loops
        self.cvTest = self.config.cvTest
        self.cv = self.config.cv
        self.cvWait = self.config.cvWait

        self.logger.debug("Looping Worker Created: {}".format(tName))
Example #9
0
	def __init__(self):
		Thread.__init__(self, "Python-Thread")
Example #10
0
 def __init__(self, tName, workerConfig):
     JThread.__init__(self)
     self.config = workerConfig
Example #11
0
    def __init__(self, name, input, output):
        self.input = input
        self.output = output

        Thread.__init__(self, name)
        self.setDaemon(1)
Example #12
0
 def __init__ (self):
         Thread.__init__(self)
Example #13
0
 def __init__(self):
     Thread.__init__(self)
 def __init__(self, port):
     Thread.__init__(self)
     self.ended = False
     self.port = port
     self.socket = None  # socket to send messages.
     self.processor = Processor()
Example #15
0
 def __init__( self, socket ):
     Thread.__init__( self )
     self.socket = socket
     self.processMsgFunc = None
     self.lastMsg = None
Example #16
0
 def __init__(self):
     Thread.__init__(self, "Python-Thread")
Example #17
0
 def __init__(self, port):
     Thread.__init__(self)
     self.ended = False
     self.port = port
     self.socket = None  # socket to send messages.
     self.processor = Processor()
Example #18
0
 def __init__(self, sim):
     Thread.__init__(self)
     self.simulator = sim
     self.yet = 1
Example #19
0
 def __init__( self, thisP, serverP ):
     Thread.__init__( self )
     self.thisPort   = thisP
     self.serverPort = serverP
     self.socket = None #socket to send messages.
Example #20
0
 def __init__(self, wrk_num):
     self.wrk_num = wrk_num
     Thread.__init__(self)
Example #21
0
 def __init__(self):
     Thread.__init__(self, name="MainThread")
     import atexit
     atexit.register(self.__exitfunc)
Example #22
0
 def __init__(self):
     Thread.__init__(self, name="MainThread")
     import atexit
     atexit.register(self.__exitfunc)
Example #23
0
    def __init__(self, name, input, output):
        self.input = input
        self.output = output

        Thread.__init__(self, name)
        self.setDaemon(1)
Example #24
0
 def __init__(self, tName, workerConfig):
     JThread.__init__(self)
     self.config = workerConfig