From f0164b9f36d247737a0857eef9d3a59667b58fdb Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Mon, 30 Sep 2013 14:15:06 +0200 Subject: [PATCH] as win does not support ucontexts, use raw as the default factory for this platform --- src/simgrid/sg_config.c | 4 ++++ 1 file changed, 4 insertions(+) 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", -- 2.20.1