X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ed48bb9aa5dc358f65a2e4e854d3b8c49bef5273..4141cd9660259caa66e2e9af10873e53402b4812:/src/kernel/activity/IoImpl.cpp diff --git a/src/kernel/activity/IoImpl.cpp b/src/kernel/activity/IoImpl.cpp index 2d21d2793c..5fac5af006 100644 --- a/src/kernel/activity/IoImpl.cpp +++ b/src/kernel/activity/IoImpl.cpp @@ -13,7 +13,7 @@ namespace simgrid { namespace kernel { namespace activity { -IoImpl::IoImpl(std::string name, surf::StorageImpl* storage) : ActivityImpl(name), storage_(storage) +IoImpl::IoImpl(std::string name, surf::StorageImpl* storage) : ActivityImpl(std::move(name)), storage_(storage) { this->state_ = SIMIX_RUNNING; @@ -32,7 +32,7 @@ IoImpl* IoImpl::start(sg_size_t size, simgrid::s4u::Io::OpType type) surf_action_ = storage_->io_start(size, type); surf_action_->set_data(this); - XBT_DEBUG("Create IO synchro %p %s", this, name_.c_str()); + XBT_DEBUG("Create IO synchro %p %s", this, get_cname()); simgrid::kernel::activity::IoImpl::on_start(this); return this; @@ -43,6 +43,7 @@ void IoImpl::cancel() XBT_VERB("This exec %p is canceled", this); if (surf_action_ != nullptr) surf_action_->cancel(); + state_ = SIMIX_CANCELED; } double IoImpl::get_remaining()