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
add a StorageFailureException
[simgrid.git]
/
src
/
simix
/
smx_io.cpp
diff --git
a/src/simix/smx_io.cpp
b/src/simix/smx_io.cpp
index
37ec679
..
4b8ecbc
100644
(file)
--- a/
src/simix/smx_io.cpp
+++ b/
src/simix/smx_io.cpp
@@
-44,7
+44,8
@@
void SIMIX_io_finish(smx_activity_t synchro)
/* do nothing, synchro done */
break;
case SIMIX_FAILED:
/* do nothing, synchro done */
break;
case SIMIX_FAILED:
- SMX_EXCEPTION(simcall->issuer, io_error, 0, "IO failed");
+ simcall->issuer->exception_ =
+ std::make_exception_ptr(simgrid::StorageFailureException(XBT_THROW_POINT, "Storage failed"));
break;
case SIMIX_CANCELED:
simcall->issuer->exception_ =
break;
case SIMIX_CANCELED:
simcall->issuer->exception_ =
@@
-55,7
+56,7
@@
void SIMIX_io_finish(smx_activity_t synchro)
}
simcall->issuer->waiting_synchro = nullptr;
}
simcall->issuer->waiting_synchro = nullptr;
- if (simcall->issuer->
host_
->is_on())
+ if (simcall->issuer->
get_host()
->is_on())
SIMIX_simcall_answer(simcall);
else
simcall->issuer->context_->iwannadie = true;
SIMIX_simcall_answer(simcall);
else
simcall->issuer->context_->iwannadie = true;