예제 #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)