X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bdaaac614d1bb0ee8e034fa76862068d57e362ee..9ba558e8b4fa1b132e834c1fbab074a3ac848169:/examples/lua/chord/chord.lua diff --git a/examples/lua/chord/chord.lua b/examples/lua/chord/chord.lua index 77e19d94dc..523b15017c 100644 --- a/examples/lua/chord/chord.lua +++ b/examples/lua/chord/chord.lua @@ -65,7 +65,7 @@ function node(...) while now < max_simulation_time do - task, err = simgrid.comm.test(my_node.comm_recv) + task, err = my_node.comm_recv:test() if task then -- I received a task: answer it @@ -271,7 +271,7 @@ function remote_find_successor(ask_to, id) " for id " .. id .. ", waiting for the answer") while true do - task = simgrid.comm.wait(my_node.comm_recv, timeout) + task = my_node.comm_recv:wait(timeout) my_node.comm_recv = simgrid.task.irecv(my_node.id) if not task then @@ -312,7 +312,7 @@ function remote_get_predecessor(ask_to) if task:send(ask_to, timeout) then -- request successfully sent: wait for an answer while true do - task = simgrid.comm.wait(my_node.comm_recv, timeout) + task = my_node.comm_recv:wait(timeout) my_node.comm_recv = simgrid.task.irecv(my_node.id) if not task then