def __init__(self, click_events, modules, keep_alive, interval=<NUM_LIT:1>):
super().__init__()<EOL>self.interval = interval<EOL>self.modules = modules<EOL>self.proto[<NUM_LIT:0>]['<STR_LIT>'] = click_events<EOL>if keep_alive:<EOL><INDENT>self.proto[<NUM_LIT:0>].update(dict(stop_signal=signal.SIGUSR2,<EOL>cont_signal=signal.SIGUSR2))<EOL>signal.signal(signal.SIGUSR2, self.suspend_signal_handler)<EOL><DEDENT>self.proto[<NUM_LIT:0>] = json.dumps(self.proto[<NUM_LIT:0>])<EOL>self.refresh_cond = Condition()<EOL>self.treshold_interval = <NUM_LIT><EOL>self.stopped = False<EOL>signal.signal(signal.SIGUSR1, self.refresh_signal_handler)<EOL>
StandaloneIO instance must be created in main thread to be able to set
the SIGUSR1 signal handler.