- simix_global->process_list[process->pid_] = process;
- XBT_DEBUG("Inserting %s(%s) in the to_run list", process->get_cname(), host->get_cname());
- simix_global->process_to_run.push_back(process);
- intrusive_ptr_add_ref(process);
-
- auto* context = dynamic_cast<simgrid::kernel::context::AttachContext*>(process->context_);
- if (not context)
- xbt_die("Not a suitable context");
+ simix_global->process_list[actor->pid_] = actor;
+ XBT_DEBUG("Inserting %s(%s) in the to_run list", actor->get_cname(), host->get_cname());
+ simix_global->process_to_run.push_back(actor);
+ intrusive_ptr_add_ref(actor);