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
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 def send_sync(self, obj: object, result1: callable):
     S.getSMP(S.loc.tcb.tid).send_sync_to(S.loc.tcb, self.tid, obj, result1)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 def send_sync(self, obj: object, result1: callable):
     S.getSMP(S.loc.tcb.tid).send_sync_to(S.loc.tcb, self.tid, obj, result1)
    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