X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a2c3c96044c07288f1e1a2c3245f8a1fb62c22d6..6024c6e3f15a8061c1e8e82dfb4b9700851a2110:/src/simix/smx_context.c?ds=sidebyside diff --git a/src/simix/smx_context.c b/src/simix/smx_context.c index 64891fd82a..c05ef67f63 100644 --- a/src/simix/smx_context.c +++ b/src/simix/smx_context.c @@ -1,6 +1,6 @@ /* a fast and simple context switching library */ -/* Copyright (c) 2009 - 2011. The SimGrid Team. +/* Copyright (c) 2009-2013. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -48,7 +48,8 @@ void SIMIX_context_mod_init(void) } 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); @@ -94,7 +95,7 @@ void SIMIX_context_mod_init(void) } /** - * This function is call by SIMIX_clean() to finalize the context module. + * This function is called by SIMIX_clean() to finalize the context module. */ void SIMIX_context_mod_exit(void) {