Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[surf] Move the hostCreatedCallbacks after the constructor
[simgrid.git] / src / surf / host_ptask_L07.cpp
index 390f3c3..2114c97 100644 (file)
@@ -42,7 +42,6 @@ void surf_host_model_init_ptask_L07(void)
   surf_host_model = new HostL07Model();
   Model *model = surf_host_model;
   xbt_dynar_push(all_existing_models, &model);
-  xbt_dynar_push(model_list_invoke, &model);
 }
 
 
@@ -278,7 +277,7 @@ Host *HostL07Model::createHost(const char *name)
   wk = new HostL07(this, name, NULL,
                                  sg_host_edge(sg_host),
                                                  sg_host_surfcpu(sg_host));
-
+  surf_callback_emit(hostCreatedCallbacks, wk);
   xbt_lib_set(host_lib, name, SURF_HOST_LEVEL, wk);
 
   return wk;