changeset 593:b892c3460a13

Updated comment to match code.
author Martin Geisler <mg@daimi.au.dk>
date Sat, 22 Mar 2008 14:41:00 +0100
parents ac18c350f8ca
children 770b59e49e81
files viff/runtime.py
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/viff/runtime.py	Thu Mar 20 00:13:34 2008 +0100
+++ b/viff/runtime.py	Sat Mar 22 14:41:00 2008 +0100
@@ -435,17 +435,17 @@
         #: a succeeded Deferred if input is received from the other
         #: player before we are ready to use it.
         #:
-        #: When we have a share to exchange with another player,
-        #: L{_exchange_shares} is used. If we are ahead of the other
-        #: player, it sets up a Deferred waiting for the players
+        #: When we expect to receive data from another player,
+        #: L{_expect_data} is used. If we are ahead of the other
+        #: player, it sets up a Deferred waiting for the player's
         #: input. It is L{ShareExchanger.stringReceived} that triggers
         #: this deferred when the input eventually arrives. If the
-        #: other player has already sent us its input, then
-        #: L{ShareExchanger.stringReceived} has set up a succeeded
-        #: Deferred which L{_exchange_shares} can simply return.
+        #: other player has already sent us its input, it will have
+        #: been stored by L{ShareExchanger.stringReceived} and
+        #: L{_expect_data} can do a callback immediatedly.
         #:
-        #: @type: C{dict} from C{(program_counter, player_id)} to
-        #: deferred data.
+        #: @type: C{dict} from C{(program_counter, player_id,
+        #: data_type)} to deferred data.
         self.incoming_data = {}
 
         #: Connections to the other players.