Ejemplo n.º 1
0
 def start(self):
     _ImmortalThread.start(self)
     log_startup(
         self, 'Thread Pool Thread With Name %s and Index %d' %
         (self.__name, self.__index),
         'TPT-%s-%d' % (self.__name, self.__index))
     while not self.__started:
         _sleep(0.001)
     return
Ejemplo n.º 2
0
 def start(self):
     _ImmortalThread.start(self)
     log_startup(self,
                 'Thread Pool Thread With Name %s and Index %d' %
                 (self.__name, self.__index),
                 'TPT-%s-%d' % (self.__name, self.__index))
     while not self.__started:
         _sleep(0.001)
     return
Ejemplo n.º 3
0
 def __init__(self, queue, name='_PoolThread'):
     _ImmortalThread.__init__(self, name=name)
     self.__queue = queue
     self.__running = 1
     self.__started = 0
     self._new_index += 1  # @fixme:  Ugly, not atomic...
     self.__index = self._new_index
     self.__name = name
     return
Ejemplo n.º 4
0
 def __init__(self, queue, name='_PoolThread'):
     _ImmortalThread.__init__(self, name=name)
     self.__queue = queue
     self.__running = 1
     self.__started = 0
     self._new_index += 1		# @fixme:  Ugly, not atomic...
     self.__index = self._new_index
     self.__name = name
     return