/* This actor simply waits for its task completion after starting it.
* That's exactly equivalent to synchronous execution. */
-static void waiter(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void waiter(int argc, char* argv[])
{
- double computation_amount = sg_host_speed(sg_host_self());
+ double computation_amount = sg_host_get_speed(sg_host_self());
XBT_INFO("Execute %g flops, should take 1 second.", computation_amount);
sg_exec_t activity = sg_actor_exec_init(computation_amount);
sg_exec_start(activity);
}
/* This actor tests the ongoing execution until its completion, and don't wait before it's terminated. */
-static void monitor(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void monitor(int argc, char* argv[])
{
- double computation_amount = sg_host_speed(sg_host_self());
+ double computation_amount = sg_host_get_speed(sg_host_self());
XBT_INFO("Execute %g flops, should take 1 second.", computation_amount);
sg_exec_t activity = sg_actor_exec_init(computation_amount);
sg_exec_start(activity);
}
/* This actor cancels the ongoing execution after a while. */
-static void canceller(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[])
+static void canceller(int argc, char* argv[])
{
- double computation_amount = sg_host_speed(sg_host_self());
+ double computation_amount = sg_host_get_speed(sg_host_self());
XBT_INFO("Execute %g flops, should take 1 second.", computation_amount);
sg_exec_t activity = sg_actor_exec_init(computation_amount);