File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -667,11 +667,13 @@ All asynchronous remote calls return `Future`s and set the
667667value to the return value of the call upon completion.
668668"""
669669function put! (r:: Future , v)
670+ println (" put!($(repr (r)) , $(repr (v)) ) on thread $(Threads. threadid ()) " )
670671 if r. where == myid ()
671672 rid = remoteref_id (r)
672673 rv = lookup_ref (rid)
673674 isready (rv) && error (" Future can be set only once" )
674675 @lock r. lock begin
676+ println (" lock acquired on thread $(Threads. threadid ()) on worker $(myid ()) " )
675677 put! (rv, v) # this notifies the tasks waiting on the channel in fetch
676678 set_future_cache (r, v) # set the cache before leaving the lock, so that the notified tasks already see it cached
677679 end
@@ -691,6 +693,7 @@ function set_future_cache(r::Future, v)
691693end
692694
693695function put_future (rid, v, caller)
696+ println (" put_future on thread $(Threads. threadid ()) on worker $(myid ()) " )
694697 rv = lookup_ref (rid)
695698 isready (rv) && error (" Future can be set only once" )
696699 put! (rv, v)
You can’t perform that action at this time.
0 commit comments