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()
def _before_run(self): ct = setid(self) self._name = ct.name if self._iothreadloop: set_event_loop(self)