X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bdaa135f5f4c27c592daf1483894bcbb0eeb9aa9..c7c5def2870e604025be03b866967c0c5e293afe:/src/simix/ActorImpl.cpp diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 63bef0510e..935ca1b12b 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -146,9 +146,6 @@ void SIMIX_process_empty_trash() namespace simgrid { -namespace s4u { -simgrid::xbt::signal s4u::Actor::onCreation; // TODO cheinrich is this the right location here? -} namespace simix { ActorImpl::~ActorImpl() @@ -351,13 +348,10 @@ smx_actor_t SIMIX_process_create(const char* name, std::function code, v XBT_DEBUG("Inserting %s(%s) in the to_run list", process->getCname(), host->getCname()); simix_global->process_to_run.push_back(process); intrusive_ptr_add_ref(process); - /* Tracing the process creation */ TRACE_msg_process_create(process->getName(), process->pid, process->host); - /* Note by cheinrich: If you move this directly after the "new ActorImpl", the pid - * will not yet be set and you will cause issues when other code relies on that. - * This is of course also true for the other properties, so I moved this here. - */ + + /* The onCreation() signal must be delayed until there, where the pid and everything is set */ simgrid::s4u::ActorPtr tmp = process->iface(); // Passing this directly to onCreation will lead to crashes simgrid::s4u::Actor::onCreation(tmp);