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
667
667
value to the return value of the call upon completion.
668
668
"""
669
669
function put! (r:: Future , v)
670
+ println (" put!($(repr (r)) , $(repr (v)) ) on thread $(Threads. threadid ()) " )
670
671
if r. where == myid ()
671
672
rid = remoteref_id (r)
672
673
rv = lookup_ref (rid)
673
674
isready (rv) && error (" Future can be set only once" )
674
675
@lock r. lock begin
676
+ println (" lock acquired on thread $(Threads. threadid ()) on worker $(myid ()) " )
675
677
put! (rv, v) # this notifies the tasks waiting on the channel in fetch
676
678
set_future_cache (r, v) # set the cache before leaving the lock, so that the notified tasks already see it cached
677
679
end
@@ -691,6 +693,7 @@ function set_future_cache(r::Future, v)
691
693
end
692
694
693
695
function put_future (rid, v, caller)
696
+ println (" put_future on thread $(Threads. threadid ()) on worker $(myid ()) " )
694
697
rv = lookup_ref (rid)
695
698
isready (rv) && error (" Future can be set only once" )
696
699
put! (rv, v)
You can’t perform that action at this time.
0 commit comments