SleepImpl* SleepImpl::start()
{
surf_action_ = host_->pimpl_cpu->sleep(duration_);
- surf_action_->set_data(this);
+ surf_action_->set_activity(this);
XBT_DEBUG("Create sleep synchronization %p", this);
return this;
}
SIMIX_simcall_answer(simcall);
}
}
- SIMIX_process_sleep_destroy(this);
+
+ clean_action();
}
} // namespace activity
} // namespace kernel