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
Avoid to throw an exception, and catch it just below.
[simgrid.git]
/
src
/
simix
/
smx_synchro.c
diff --git
a/src/simix/smx_synchro.c
b/src/simix/smx_synchro.c
index
e85bfe3
..
d09b416
100644
(file)
--- a/
src/simix/smx_synchro.c
+++ b/
src/simix/smx_synchro.c
@@
-96,21
+96,11
@@
static void SIMIX_synchro_finish(smx_action_t action)
switch (action->state) {
case SIMIX_SRC_TIMEOUT:
switch (action->state) {
case SIMIX_SRC_TIMEOUT:
- TRY {
- THROWF(timeout_error, 0, "Synchro's wait timeout");
- }
- CATCH(simcall->issuer->running_ctx->exception) {
- simcall->issuer->doexception = 1;
- }
+ SMX_EXCEPTION(simcall->issuer, timeout_error, 0, "Synchro's wait timeout");
break;
case SIMIX_FAILED:
break;
case SIMIX_FAILED:
- TRY {
- THROWF(host_error, 0, "Host failed");
- }
- CATCH(simcall->issuer->running_ctx->exception) {
- simcall->issuer->doexception = 1;
- }
+ SMX_EXCEPTION(simcall->issuer, host_error, 0, "Host failed");
break;
default:
break;
default: