X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/db47dd48806619184080b0b9d9e655d7d9d1ed63..d8748b89381091cabc8ed76c93d26c3e3b4b8cf4:/src/kernel/activity/ExecImpl.cpp diff --git a/src/kernel/activity/ExecImpl.cpp b/src/kernel/activity/ExecImpl.cpp index 5da186d396..83e7e88da5 100644 --- a/src/kernel/activity/ExecImpl.cpp +++ b/src/kernel/activity/ExecImpl.cpp @@ -19,10 +19,10 @@ namespace kernel { namespace activity { ExecImpl::ExecImpl(std::string name, std::string tracing_category, resource::Action* timeout_detector, s4u::Host* host) - : ActivityImpl(name), host_(host), timeout_detector_(timeout_detector) + : ActivityImpl(std::move(name)), host_(host), timeout_detector_(timeout_detector) { this->state_ = SIMIX_RUNNING; - this->set_category(tracing_category); + this->set_category(std::move(tracing_category)); if (timeout_detector != nullptr) timeout_detector_->set_data(this); @@ -49,7 +49,7 @@ ExecImpl* ExecImpl::start(double flops_amount, double priority, double bound) surf_action_->set_bound(bound); } - XBT_DEBUG("Create execute synchro %p: %s", this, name_.c_str()); + XBT_DEBUG("Create execute synchro %p: %s", this, get_cname()); ExecImpl::on_creation(this); return this; } @@ -91,7 +91,7 @@ void ExecImpl::set_priority(double priority) void ExecImpl::post() { - if (host_ && host_->is_off()) { /* FIXME: handle resource failure for parallel tasks too */ + if (host_ && not host_->is_on()) { /* FIXME: handle resource failure for parallel tasks too */ /* If the host running the synchro failed, notice it. This way, the asking * process can be killed if it runs on that host itself */ state_ = SIMIX_FAILED;