示例#1
0
文件: threads.py 项目: japaks/pulsar
 def run(self):
     '''Modified run method which set the actor and the event_loop.
     '''
     actor = self._actor
     del self._actor
     set_actor(actor)
     set_event_loop(actor.event_loop)
     super(Thread, self).run()
示例#2
0
 def run(self):
     '''Modified run method which set the actor and the event_loop.
     '''
     actor = self._actor
     del self._actor
     set_actor(actor)
     set_event_loop(actor.event_loop)
     super(Thread, self).run()
示例#3
0
 def _before_run(self):
     ct = setid(self)
     self._name = ct.name
     if self._iothreadloop:
         set_event_loop(self)
示例#4
0
 def _before_run(self):
     ct = setid(self)
     self._name = ct.name
     if self._iothreadloop:
         set_event_loop(self)