Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 28 Aug 2016 20:03:05 +0000 (22:03 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 28 Aug 2016 20:03:05 +0000 (22:03 +0200)
src/simix/libsmx.cpp

index f31aa0e..4fd6d54 100644 (file)
@@ -193,7 +193,7 @@ e_smx_state_t simcall_execution_wait(smx_activity_t execution)
  */
 sg_host_t simcall_vm_create(const char *name, sg_host_t phys_host)
 {
  */
 sg_host_t simcall_vm_create(const char *name, sg_host_t phys_host)
 {
-  return simgrid::simix::kernelImmediate([&] {
+  return simgrid::simix::kernelImmediate([&name, &phys_host] {
     sg_host_t host = surf_vm_model->createVM(name, phys_host);
     SIMIX_host_create(host);
 
     sg_host_t host = surf_vm_model->createVM(name, phys_host);
     SIMIX_host_create(host);