Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill two useless functions at once
[simgrid.git] / src / simix / libsmx.cpp
index 4fd6d54..2fa37b7 100644 (file)
@@ -195,7 +195,7 @@ sg_host_t simcall_vm_create(const char *name, sg_host_t phys_host)
 {
   return simgrid::simix::kernelImmediate([&name, &phys_host] {
     sg_host_t host = surf_vm_model->createVM(name, phys_host);
-    SIMIX_host_create(host);
+    host->extension_set<simgrid::simix::Host>(new simgrid::simix::Host());
 
     return host;
   });