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
Update copyright lines.
[simgrid.git]
/
examples
/
c
/
actor-lifetime
/
actor-lifetime.c
diff --git
a/examples/c/actor-lifetime/actor-lifetime.c
b/examples/c/actor-lifetime/actor-lifetime.c
index
10c6e35
..
1d20ad0
100644
(file)
--- a/
examples/c/actor-lifetime/actor-lifetime.c
+++ b/
examples/c/actor-lifetime/actor-lifetime.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007-202
0
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-202
1
. 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. */
@@
-13,15
+13,14
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Messages specific for this example");
XBT_LOG_NEW_DEFAULT_CATEGORY(test, "Messages specific for this example");
-/* Executed on
process
termination*/
-static
int my_onexit(XBT_ATTRIB_UNUSED int ignored1, XBT_ATTRIB_UNUSED
void* ignored2)
+/* Executed on
actor
termination*/
+static
void my_onexit(int ignored1,
void* ignored2)
{
XBT_INFO("Exiting now (done sleeping or got killed)."); /* - Just display an informative message (see tesh file) */
{
XBT_INFO("Exiting now (done sleeping or got killed)."); /* - Just display an informative message (see tesh file) */
- return 0;
}
/* Just sleep until termination */
}
/* Just sleep until termination */
-static void sleeper(
XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED
char* argv[])
+static void sleeper(
int argc,
char* argv[])
{
sg_actor_on_exit(my_onexit, NULL);
{
sg_actor_on_exit(my_onexit, NULL);
@@
-40,7
+39,7
@@
int main(int argc, char* argv[])
simgrid_load_platform(argv[1]); /* - Load the platform description */
simgrid_register_function("sleeper", sleeper);
simgrid_load_platform(argv[1]); /* - Load the platform description */
simgrid_register_function("sleeper", sleeper);
- simgrid_load_deployment(argv[2]); /* - Deploy the sleeper
processe
s with explicit start/kill times */
+ simgrid_load_deployment(argv[2]); /* - Deploy the sleeper
actor
s with explicit start/kill times */
simgrid_run(); /* - Run the simulation */
simgrid_run(); /* - Run the simulation */