/* context factory */
xbt_cfg_register(&_sg_cfg_set, "contexts/factory",
- "Context factory to use in SIMIX (ucontext, thread or raw)",
+ "Context factory to use in SIMIX (default, 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
+ xbt_cfg_setdefault_string(_sg_cfg_set, "contexts/factory", "default");
/* stack size of contexts in Ko */
xbt_cfg_register(&_sg_cfg_set, "contexts/stack_size",
}
else { /* use the factory specified by --cfg=contexts/factory:value */
- if (smx_context_factory_name == NULL) {
+ if (smx_context_factory_name == NULL ||
+ !strcmp(smx_context_factory_name, "default")) {
/* use the default factory */
#ifdef HAVE_RAWCTX
SIMIX_ctx_raw_factory_init(&simix_global->context_factory);