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
Use new macros THROWF and RETHROWF.
[simgrid.git]
/
examples
/
gras
/
mutual_exclusion
/
simple_token
/
simple_token.c
diff --git
a/examples/gras/mutual_exclusion/simple_token/simple_token.c
b/examples/gras/mutual_exclusion/simple_token/simple_token.c
index
686d7ec
..
65a7d2d
100644
(file)
--- a/
examples/gras/mutual_exclusion/simple_token/simple_token.c
+++ b/
examples/gras/mutual_exclusion/simple_token/simple_token.c
@@
-79,7
+79,7
@@
static int node_cb_stoken_handler(gras_msg_cb_ctx_t ctx, void *payload)
}
CATCH(e) {
gras_socket_close(globals->sock);
}
CATCH(e) {
gras_socket_close(globals->sock);
- RETHROW
0
("Unable to forward token: %s");
+ RETHROW
F
("Unable to forward token: %s");
}
}
}
}
@@
-171,7
+171,7
@@
int node(int argc, char *argv[])
TRY {
gras_msg_send(globals->tosuccessor, "stoken", &token);
} CATCH(e) {
TRY {
gras_msg_send(globals->tosuccessor, "stoken", &token);
} CATCH(e) {
- RETHROW
0
("Unable to send the freshly created token: %s");
+ RETHROW
F
("Unable to send the freshly created token: %s");
}
}
}
}