msg_host_t pm0 = xbt_dynar_get_as(hosts_dynar, 0, msg_host_t);
msg_vm_t vm0;
vm0 = MSG_vm_create_core(pm0, "VM0");
-
+ MSG_vm_start(vm0);
//MSG_process_sleep(1);
- launch_computation_worker(pm0);
+ launch_computation_worker(vm0);
while(MSG_get_clock()<100) {
if (atask != NULL)
}
MSG_process_sleep(10000);
+ MSG_vm_destroy(vm0);
+ xbt_dynar_free(&hosts_dynar);
return 1;
}
int res = MSG_main();
XBT_INFO("Bye (simulation time %g)", MSG_get_clock());
+ xbt_dynar_free(&hosts_dynar);
return !(res == MSG_OK);
}