コード例 #1
0
    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
コード例 #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)
コード例 #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)
コード例 #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)
コード例 #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)
コード例 #6
0
    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