From: Augustin Degomme Date: Mon, 30 Sep 2013 12:15:06 +0000 (+0200) Subject: as win does not support ucontexts, use raw as the default factory for this platform X-Git-Tag: v3_9_90~60^2~20 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f0164b9f36d247737a0857eef9d3a59667b58fdb as win does not support ucontexts, use raw as the default factory for this platform --- 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",