def reply(self, obj: object): S.getSMP(self.sender).deliver_reply_to(self.target, self.sender, obj, self) # RIGHT NOW THIS DOES NOT REQUIRE ANY PATCHING #import yos.ipc #yos.ipc.SynchronousMessage = SynchronousMessageHandler
def send_sync_to(tid: int, obj: object, result1: callable): if not S.isLocal(tid): raise NotImplementedError("Sorry, no IPC yet") S.getSMP(S.loc.tcb.tid).send_sync_to(S.loc.tcb, tid, obj, result1)
def send_sync(self, obj: object, result1: callable): S.getSMP(S.loc.tcb.tid).send_sync_to(S.loc.tcb, self.tid, obj, result1)