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
objectifies surf::Action::State
[simgrid.git]
/
src
/
simix
/
smx_io.cpp
diff --git
a/src/simix/smx_io.cpp
b/src/simix/smx_io.cpp
index
dd2bb72
..
96224c6
100644
(file)
--- a/
src/simix/smx_io.cpp
+++ b/
src/simix/smx_io.cpp
@@
-62,7
+62,7
@@
smx_synchro_t SIMIX_file_read(smx_file_t fd, sg_size_t size, sg_host_t host)
smx_synchro_t synchro;
/* check if the host is active */
smx_synchro_t synchro;
/* check if the host is active */
- if (host->is
_o
ff()) {
+ if (host->is
O
ff()) {
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
sg_host_get_name(host));
}
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
sg_host_get_name(host));
}
@@
-94,7
+94,7
@@
smx_synchro_t SIMIX_file_write(smx_file_t fd, sg_size_t size, sg_host_t host)
smx_synchro_t synchro;
/* check if the host is active */
smx_synchro_t synchro;
/* check if the host is active */
- if (host->is
_o
ff()) {
+ if (host->is
O
ff()) {
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
sg_host_get_name(host));
}
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
sg_host_get_name(host));
}
@@
-126,7
+126,7
@@
smx_synchro_t SIMIX_file_open(const char* fullpath, sg_host_t host)
smx_synchro_t synchro;
/* check if the host is active */
smx_synchro_t synchro;
/* check if the host is active */
- if (host->is
_o
ff()) {
+ if (host->is
O
ff()) {
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
sg_host_get_name(host));
}
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
sg_host_get_name(host));
}
@@
-158,7
+158,7
@@
smx_synchro_t SIMIX_file_close(smx_file_t fd, sg_host_t host)
smx_synchro_t synchro;
/* check if the host is active */
smx_synchro_t synchro;
/* check if the host is active */
- if (host->is
_o
ff()) {
+ if (host->is
O
ff()) {
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
sg_host_get_name(host));
}
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
sg_host_get_name(host));
}
@@
-182,7
+182,7
@@
smx_synchro_t SIMIX_file_close(smx_file_t fd, sg_host_t host)
int SIMIX_file_unlink(smx_file_t fd, sg_host_t host)
{
/* check if the host is active */
int SIMIX_file_unlink(smx_file_t fd, sg_host_t host)
{
/* check if the host is active */
- if (host->is
_o
ff()) {
+ if (host->is
O
ff()) {
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
sg_host_get_name(host));
}
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
sg_host_get_name(host));
}
@@
-326,11
+326,11
@@
void SIMIX_post_io(smx_synchro_t synchro)
switch (synchro->io.surf_io->getState()) {
switch (synchro->io.surf_io->getState()) {
- case
SURF_ACTION_FAILED
:
+ case
simgrid::surf::Action::State::failed
:
synchro->state = SIMIX_FAILED;
break;
synchro->state = SIMIX_FAILED;
break;
- case
SURF_ACTION_DONE
:
+ case
simgrid::surf::Action::State::done
:
synchro->state = SIMIX_DONE;
break;
synchro->state = SIMIX_DONE;
break;
@@
-376,7
+376,7
@@
void SIMIX_io_finish(smx_synchro_t synchro)
(int)synchro->state);
}
(int)synchro->state);
}
- if (simcall->issuer->host->is
_o
ff()) {
+ if (simcall->issuer->host->is
O
ff()) {
simcall->issuer->context->iwannadie = 1;
}
simcall->issuer->context->iwannadie = 1;
}