Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
as win does not support ucontexts, use raw as the default factory for this platform
authorAugustin Degomme <degomme@idpann.imag.fr>
Mon, 30 Sep 2013 12:15:06 +0000 (14:15 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Mon, 30 Sep 2013 12:15:06 +0000 (14:15 +0200)
src/simgrid/sg_config.c

index 77d8bef..1b188b5 100644 (file)
@@ -604,7 +604,11 @@ void sg_config_init(int *argc, char **argv)
     xbt_cfg_register(&_sg_cfg_set, "contexts/factory",
                      "Context factory to use in SIMIX (ucontext, thread or raw)",
                      xbt_cfgelm_string, 1, 1, _sg_cfg_cb_context_factory, NULL);
     xbt_cfg_register(&_sg_cfg_set, "contexts/factory",
                      "Context factory to use in SIMIX (ucontext, thread or raw)",
                      xbt_cfgelm_string, 1, 1, _sg_cfg_cb_context_factory, NULL);
+#ifndef WIN32
     xbt_cfg_setdefault_string(_sg_cfg_set, "contexts/factory", "ucontext");
     xbt_cfg_setdefault_string(_sg_cfg_set, "contexts/factory", "ucontext");
+#else
+    xbt_cfg_setdefault_string(_sg_cfg_set, "contexts/factory", "raw");
+#endif
 
     /* stack size of contexts in Ko */
     xbt_cfg_register(&_sg_cfg_set, "contexts/stack_size",
 
     /* stack size of contexts in Ko */
     xbt_cfg_register(&_sg_cfg_set, "contexts/stack_size",