X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bbc57f5380f908b965ad6b3e0b47d374b739a526..4b04faa98dd6b4d52c3383a177e810f8e450fd48:/src/s4u/s4u_Io.cpp diff --git a/src/s4u/s4u_Io.cpp b/src/s4u/s4u_Io.cpp index 27ff69f216..52f55b4322 100644 --- a/src/s4u/s4u_Io.cpp +++ b/src/s4u/s4u_Io.cpp @@ -6,7 +6,6 @@ #include "simgrid/s4u/Io.hpp" #include "simgrid/s4u/Storage.hpp" #include "src/kernel/activity/IoImpl.hpp" -#include "src/simix/smx_io_private.hpp" #include "xbt/log.h" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_io, s4u_activity, "S4U asynchronous IOs"); @@ -23,14 +22,14 @@ Io::Io(sg_storage_t storage, sg_size_t size, OpType type) : Activity(), storage_ Io* Io::start() { - simix::simcall([this] { dynamic_cast(pimpl_.get())->start(size_, type_); }); + simix::simcall([this] { static_cast(pimpl_.get())->start(size_, type_); }); state_ = State::STARTED; return this; } Io* Io::cancel() { - simgrid::simix::simcall([this] { dynamic_cast(pimpl_.get())->cancel(); }); + simgrid::simix::simcall([this] { static_cast(pimpl_.get())->cancel(); }); state_ = State::CANCELED; return this; }