def backlog_thread(self): r"""tools.YggTask: Task that will handle sinding or receiving backlogged messages.""" if self._backlog_thread is None: if self.direction == 'send': self._backlog_thread = CommBase.CommTaskLoop( self, target=self.run_backlog_send, suffix='SendBacklog') else: self._backlog_thread = CommBase.CommTaskLoop( self, target=self.run_backlog_recv, suffix='RecvBacklog') return self._backlog_thread
def reply_thread(self): r"""tools.YggTask: Task that will handle sinding or receiving backlogged messages.""" if (self._reply_thread is None) and (not self.is_async): def reply_target(): if self.is_closed: raise multitasking.BreakLoopException("Comm closed") if self.direction == 'send': self.confirm_send(sleep=True) else: self.confirm_recv(sleep=True) self._reply_thread = CommBase.CommTaskLoop( self, target=reply_target, suffix='Reply') return self._reply_thread