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
Adapt masterslave_bypass to the brand new AS tag.
[simgrid.git]
/
examples
/
msg
/
masterslave
/
masterslave_mailbox.c
diff --git
a/examples/msg/masterslave/masterslave_mailbox.c
b/examples/msg/masterslave/masterslave_mailbox.c
index
32e5051
..
80497e5
100644
(file)
--- a/
examples/msg/masterslave/masterslave_mailbox.c
+++ b/
examples/msg/masterslave/masterslave_mailbox.c
@@
-1,6
+1,5
@@
-/* $Id$ */
-
-/* Copyright (c) 2002,2003,2004 Arnaud Legrand. All rights reserved. */
+/* Copyright (c) 2010. The SimGrid Team.
+ * All rights reserved. */
/* 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. */
@@
-50,11
+49,12
@@
int master(int argc, char *argv[])
char mailbox[80];
sprintf(mailbox,"slave-%ld",i % slaves_count);
char mailbox[80];
sprintf(mailbox,"slave-%ld",i % slaves_count);
- MSG_task_send(MSG_task_create("finalize", 0, 0, 0), mailbox);
+ m_task_t finalize = MSG_task_create ("finalize", 0, 0, 0);
+ MSG_task_send(finalize, mailbox);
}
// INFO0("Goodbye now!");
}
// INFO0("Goodbye now!");
-
exit(0)
;
+
return 0
;
} /* end_of_master */
/** Receiver function */
} /* end_of_master */
/** Receiver function */
@@
-125,6
+125,7
@@
int main(int argc, char *argv[])
exit(1);
}
res = test_all(argv[1],argv[2]);
exit(1);
}
res = test_all(argv[1],argv[2]);
+ SIMIX_message_sizes_output("toto.txt");
MSG_clean();
if(res==MSG_OK)
MSG_clean();
if(res==MSG_OK)