X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3dcb31805df1efaed29b9ce17171f29ff6aedf31..f0164b9f36d247737a0857eef9d3a59667b58fdb:/src/simgrid/sg_config.c diff --git a/src/simgrid/sg_config.c b/src/simgrid/sg_config.c index 77d8befa7e..1b188b55c5 100644 --- a/src/simgrid/sg_config.c +++ b/src/simgrid/sg_config.c @@ -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); +#ifndef WIN32 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",