viff

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 diff
     1.1 --- a/viff/runtime.py	Thu Mar 20 00:13:34 2008 +0100
     1.2 +++ b/viff/runtime.py	Sat Mar 22 14:41:00 2008 +0100
     1.3 @@ -435,17 +435,17 @@
     1.4          #: a succeeded Deferred if input is received from the other
     1.5          #: player before we are ready to use it.
     1.6          #:
     1.7 -        #: When we have a share to exchange with another player,
     1.8 -        #: L{_exchange_shares} is used. If we are ahead of the other
     1.9 -        #: player, it sets up a Deferred waiting for the players
    1.10 +        #: When we expect to receive data from another player,
    1.11 +        #: L{_expect_data} is used. If we are ahead of the other
    1.12 +        #: player, it sets up a Deferred waiting for the player's
    1.13          #: input. It is L{ShareExchanger.stringReceived} that triggers
    1.14          #: this deferred when the input eventually arrives. If the
    1.15 -        #: other player has already sent us its input, then
    1.16 -        #: L{ShareExchanger.stringReceived} has set up a succeeded
    1.17 -        #: Deferred which L{_exchange_shares} can simply return.
    1.18 +        #: other player has already sent us its input, it will have
    1.19 +        #: been stored by L{ShareExchanger.stringReceived} and
    1.20 +        #: L{_expect_data} can do a callback immediatedly.
    1.21          #:
    1.22 -        #: @type: C{dict} from C{(program_counter, player_id)} to
    1.23 -        #: deferred data.
    1.24 +        #: @type: C{dict} from C{(program_counter, player_id,
    1.25 +        #: data_type)} to deferred data.
    1.26          self.incoming_data = {}
    1.27  
    1.28          #: Connections to the other players.