You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Seamless/SeamlessSyncRequestContext.class.st
+5-15
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
"
2
2
I am request context which implements synchronous request sending when senders are waiting result from receiver peer.
3
-
To implement this behaviour I fork actual request sending and wait signal from resultWaiter semaphore. I am transfered by reference to receiver peer as part of sent request. On receiver side request executed and result is returned to me by ""backward"" remote message. I receive #return: message which stores argument as result and signal resultWaiter semaphore. Signal resumes original sender process which continue execution with received value.
3
+
To implement this behaviour send a request to receiver peer and wait a delivery of result from it.
4
+
I am transfered by reference to receiver peer as part of sent request. On receiver side request executed and result is returned to me by SeamlessDeliverResultRequest using same context. At the end I receive #return: message which shifts the argument to the result delivery. Delivery signals the original sender process which continue execution with received value.
4
5
5
-
During request execution receiver peer will keep reference to me. It can be used to retrieved information on receiver side about my sender process.
6
+
During request execution the receiver peer will keep reference to me. It can be used to retrieved information on receiver side about my sender process.
6
7
7
8
Internal Representation and Key Implementation Points.
0 commit comments