- simgrid::kernel::activity::ExecImplPtr exec = simgrid::kernel::activity::ExecImplPtr(
- new simgrid::kernel::activity::ExecImpl(std::move(name), "", timeout_detector, nullptr));
- if (surf_action != nullptr) {
- exec->surf_action_ = surf_action;
- exec->surf_action_->set_data(exec.get());
- }