- make processes' names symmetrical in an example
- improve changelog
That's a point in the routing algorithm, let's avoid wrong simplifications.
MSG
That's a point in the routing algorithm, let's avoid wrong simplifications.
MSG
- - New: MSG_process_yield()
+ - New: MSG_process_yield(). Stop and yield to other processes.
- New: MSG_process_daemon(). Daemon processes are automatically killed
when the last non-daemon process terminates
- Renamed MSG_energy_plugin_init() -> MSG_host_energy_plugin_init()
- New: MSG_process_daemon(). Daemon processes are automatically killed
when the last non-daemon process terminates
- Renamed MSG_energy_plugin_init() -> MSG_host_energy_plugin_init()
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_process_daemon, "Messages specific for this msg example");
/* The worker process, working for a while before leaving */
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_process_daemon, "Messages specific for this msg example");
/* The worker process, working for a while before leaving */
-static int worker(int argc, char* argv[])
+static int worker_process(int argc, char* argv[])
{
XBT_INFO("Let's do some work (for 10 sec on Boivin).");
msg_task_t task = MSG_task_create("easy work", 980.95e6, 0, NULL);
{
XBT_INFO("Let's do some work (for 10 sec on Boivin).");
msg_task_t task = MSG_task_create("easy work", 980.95e6, 0, NULL);
MSG_create_environment(argv[1]);
xbt_dynar_t hosts = MSG_hosts_as_dynar();
MSG_create_environment(argv[1]);
xbt_dynar_t hosts = MSG_hosts_as_dynar();
- MSG_process_create("worker", worker, NULL, xbt_dynar_getfirst_as(hosts, msg_host_t));
+ MSG_process_create("worker", worker_process, NULL, xbt_dynar_getfirst_as(hosts, msg_host_t));
MSG_process_create("daemon", daemon_process, NULL, xbt_dynar_getlast_as(hosts, msg_host_t));
xbt_dynar_free(&hosts);
msg_error_t res = MSG_main();
MSG_process_create("daemon", daemon_process, NULL, xbt_dynar_getlast_as(hosts, msg_host_t));
xbt_dynar_free(&hosts);
msg_error_t res = MSG_main();