Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
create a NetZone::onCreation signal and use it from instr
[simgrid.git] / src / surf / sg_platf.cpp
index 2e10ec0..7eb25fc 100644 (file)
@@ -662,8 +662,7 @@ simgrid::s4u::NetZone* sg_platf_new_AS_begin(sg_platf_AS_cbarg_t AS)
   /* set the new current component of the tree */
   current_routing = new_as;
 
-  if (TRACE_is_enabled())
-    sg_instr_AS_begin(AS);
+  simgrid::s4u::NetZone::onCreation(*new_as); // notify the signal
 
   return new_as;
 }