def prime(self, callback): if self.cbhdl == 0: # import pdb # pdb.set_trace() self.cbhdl = simulator.register_rwsynch_callback(callback, self) if self.cbhdl == 0: raise_error(self, "Unable set up %s Trigger" % (str(self))) Trigger.prime(self)
def prime(self, callback): if self.cbhdl is None: #import pdb #pdb.set_trace() self.cbhdl = simulator.register_rwsynch_callback(callback, self) if self.cbhdl is None: raise_error(self, "Unable set up %s Trigger" % (str(self))) Trigger.prime(self)
def prime(self, callback): """FIXME: document""" if self.cbhdl == 0: # import pdb # pdb.set_trace() self.cbhdl = simulator.register_rwsynch_callback(callback, self) if self.cbhdl == 0: raise_error(self, "Unable set up %s Trigger" % (str(self))) Trigger.prime(self)
def prime(self, callback): Trigger.prime(self) if simulator.register_rwsynch_callback(self.cbhdl, callback, self): raise_error(self, "Unable set up %s Trigger" % (str(self)))