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 run(self):
     log_startup(self, self.getName(), 'SchedulerThread')
     self.debugout('entering run() loop', STANDARDDEBUG)
     while self.should_run():
         self._running.set()
         try:
             self._schedulerloop()
         except:
             msglog.exception(prefix='handled')
             msglog.log('broadway', msglog.types.WARN,
                        '%s re-entering run loop.' % self.getName())
         self._running.clear()
     else:
         self.debugout('exiting run() loop', STANDARDDEBUG)
     self.debugout('exiting run()', STANDARDDEBUG)
Ejemplo n.º 4
0
 def run(self):
     log_startup(self, self.getName(), 'SchedulerThread')
     self.debugout('entering run() loop', STANDARDDEBUG)
     while self.should_run():
         self._running.set()
         try:
             self._schedulerloop()
         except:
             msglog.exception(prefix = 'handled')
             msglog.log('broadway', msglog.types.WARN, 
                        '%s re-entering run loop.' % self.getName())
         self._running.clear()
     else:
         self.debugout('exiting run() loop', STANDARDDEBUG)
     self.debugout('exiting run()', STANDARDDEBUG)