X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c1b3e440de2150420b08c0bc55a125a0c9eb86bc..239a6c2b5cf6df25b93d95b5df30fb5fbacbfbcd:/src/s4u/s4u_Exec.cpp diff --git a/src/s4u/s4u_Exec.cpp b/src/s4u/s4u_Exec.cpp index 0ecdc7292e..1860395c3f 100644 --- a/src/s4u/s4u_Exec.cpp +++ b/src/s4u/s4u_Exec.cpp @@ -26,9 +26,8 @@ Exec::Exec(sg_host_t host, double flops_amount) : Activity(), host_(host), flops Exec* Exec::start() { - simix::simcall([this] { - dynamic_cast(pimpl_.get())->start(flops_amount_, 1. / priority_, bound_); - }); + simix::simcall( + [this] { static_cast(pimpl_.get())->start(flops_amount_, 1. / priority_, bound_); }); state_ = State::STARTED; on_start(Actor::self()); return this; @@ -36,7 +35,7 @@ Exec* Exec::start() Exec* Exec::cancel() { - simgrid::simix::simcall([this] { dynamic_cast(pimpl_.get())->cancel(); }); + simgrid::simix::simcall([this] { static_cast(pimpl_.get())->cancel(); }); state_ = State::CANCELED; return this; }