surf_action_->set_priority(priority);
}
+void simgrid::kernel::activity::ExecImpl::set_category(std::string category)
+{
+ if (surf_action_)
+ surf_action_->set_category(category);
+}
+
void simgrid::kernel::activity::ExecImpl::post()
{
if (host_ && host_->is_off()) { /* FIXME: handle resource failure for parallel tasks too */
state_ = SIMIX_DONE;
}
+ on_completion(this);
+
if (surf_action_) {
surf_action_->unref();
surf_action_ = nullptr;
timeout_detector_ = nullptr;
}
- on_completion(this);
/* If there are simcalls associated with the synchro, then answer them */
if (not simcalls_.empty())
SIMIX_execution_finish(this);