A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
all DHT examples are now called dht-<protocol>
[simgrid.git]
/
examples
/
msg
/
cloud
/
two_tasks_vm.c
diff --git
a/examples/msg/cloud/two_tasks_vm.c
b/examples/msg/cloud/two_tasks_vm.c
index
6a0dd2c
..
15c9698
100644
(file)
--- a/
examples/msg/cloud/two_tasks_vm.c
+++ b/
examples/msg/cloud/two_tasks_vm.c
@@
-4,14
+4,9
@@
/* 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. */
/* 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. */
-#include <stdio.h>
#include "simgrid/msg.h"
#include "simgrid/msg.h"
-#include "xbt/sysdep.h"
-#include "xbt/log.h"
-#include "xbt/asserts.h"
-XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
- "Messages specific for this msg example");
+XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
msg_task_t atask = NULL;
msg_task_t atask = NULL;
@@
-70,9
+65,9
@@
static int master_main(int argc, char *argv[])
launch_computation_worker(vm0);
while(MSG_get_clock()<100) {
launch_computation_worker(vm0);
while(MSG_get_clock()<100) {
-
if (atask != NULL)
-
XBT_INFO("aTask remaining duration: %g", MSG_task_get_flops_amount(atask));
-
MSG_process_sleep(1);
+ if (atask != NULL)
+ XBT_INFO("aTask remaining duration: %g", MSG_task_get_flops_amount(atask));
+ MSG_process_sleep(1);
}
MSG_process_sleep(10000);
}
MSG_process_sleep(10000);
@@
-108,6
+103,3
@@
int main(int argc, char *argv[]){
return !(res == MSG_OK);
}
return !(res == MSG_OK);
}
-
-
-