def __init__(self, event_dispatcher, parent): BTControlConnectionClientGonium.__init__(self, event_dispatcher) ThroughputCounter.__init__(self) self.parent = parent self.em_utd_change_true.EventListener(self.utd_change_true_process) self.em_throughput_block.EventListener(self.throughput_block_note) self.em_throughput_slice.EventListener(self.throughput_slice_note) self.tp_display_stale = False self.tp_display_timer = self.event_dispatcher.Timer( self.TP_DISPLAY_DELAY, self.throughput_display_update, persistence=True)
def clean_up(self): """Close fds and cancel timers""" BTControlConnectionClientGonium.clean_up() if (self.tp_display_timer): self.tp_display_timer.stop() self.tp_display_timer = None