X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d3b3b9f8cec4348d871d260face8683c09426cdc..320d57b79b6f363e6430ec2fffcd3301a52a2ad9:/src/simix/ActorImpl.cpp diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 7866fb050a..fcc6dac696 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -145,6 +145,10 @@ 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() @@ -310,6 +314,8 @@ smx_actor_t SIMIX_process_create(const char* name, std::function code, v } smx_actor_t process = new simgrid::simix::ActorImpl(); + simgrid::s4u::ActorPtr tmp = process->iface(); // Passing this directly to onCreation will lead to crashes + simgrid::s4u::Actor::onCreation(tmp); xbt_assert(code && host != nullptr, "Invalid parameters"); /* Process data */