+-- Copyright (c) 2011, 2014. The SimGrid Team.
+-- All rights reserved.
+
+-- This program is free software; you can redistribute it and/or modify it
+-- under the terms of the license (GNU LGPL) which comes with this package.
+
require "simgrid"
-- Splay global modules
-- event Methods
function events.sleep(time)
my_mailbox = job.me.ip()..":"..job.me.port()
- task = simgrid.task.recv_timeout(my_mailbox, time)
+ task = simgrid.task.recv(my_mailbox, time)
if task ~= nil then
-- an RPC call just woke me up