Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 9
0
	def __init__(self):
		Thread.__init__(self, "Python-Thread")
Exemplo n.º 10
0
 def __init__(self, tName, workerConfig):
     JThread.__init__(self)
     self.config = workerConfig
Exemplo n.º 11
0
    def __init__(self, name, input, output):
        self.input = input
        self.output = output

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

        Thread.__init__(self, name)
        self.setDaemon(1)
Exemplo n.º 24
0
 def __init__(self, tName, workerConfig):
     JThread.__init__(self)
     self.config = workerConfig