X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dd32904d9a6e22c3357109d5e854203e6099d744..0821eaf865ee5431f938481ede3c2e77ef095f65:/examples/msg/parallel_task/parallel_task.c diff --git a/examples/msg/parallel_task/parallel_task.c b/examples/msg/parallel_task/parallel_task.c index e6ac43a8c9..7811e91f1c 100644 --- a/examples/msg/parallel_task/parallel_task.c +++ b/examples/msg/parallel_task/parallel_task.c @@ -14,6 +14,16 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example"); +/** @addtogroup MSG_examples + * + * - parallel_task/parallel_task.c: Demonstrates the use of + * @ref MSG_parallel_task_create, to create special tasks that run + * on several hosts at the same time. The resulting simulations are + * very close to what can be achieved in @ref SD_API, but still + * allows to use the other features of MSG (it'd be cool to be able + * to mix interfaces, but it's not possible ATM). + */ + int test(int argc, char *argv[]); MSG_error_t test_all(const char *platform_file); @@ -71,7 +81,7 @@ MSG_error_t test_all(const char *platform_file) MSG_create_environment(platform_file); all_hosts = MSG_hosts_as_dynar(); - first_host = xbt_dynar_pop_as(all_hosts,m_host_t); + first_host = xbt_dynar_getfirst_as(all_hosts,m_host_t); MSG_process_create("test", test, NULL, first_host); res = MSG_main(); xbt_dynar_free(&all_hosts);