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
modernize one more simcall
[simgrid.git]
/
src
/
s4u
/
s4u_file.cpp
diff --git
a/src/s4u/s4u_file.cpp
b/src/s4u/s4u_file.cpp
index
25595a9
..
7f9a7d5
100644
(file)
--- a/
src/s4u/s4u_file.cpp
+++ b/
src/s4u/s4u_file.cpp
@@
-93,14
+93,14
@@
void File::move(const char* fullpath)
simcall_file_move(pimpl_,fullpath);
}
simcall_file_move(pimpl_,fullpath);
}
-
void
File::unlink()
+
int
File::unlink()
{
{
-
simcall_file_unlink(pimpl_, Host::current()
);
+
return simgrid::simix::kernelImmediate([this] { return pimpl_->unlink(Host::current()); }
);
}
}
-
void
File::unlink(sg_host_t host)
+
int
File::unlink(sg_host_t host)
{
{
-
simcall_file_unlink(pimpl_, host
);
+
return simgrid::simix::kernelImmediate([this, host] { return pimpl_->unlink(host); }
);
}
}} // namespace simgrid::s4u
}
}} // namespace simgrid::s4u