A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix default context factory.
[simgrid.git]
/
src
/
simix
/
smx_context.c
diff --git
a/src/simix/smx_context.c
b/src/simix/smx_context.c
index
64891fd
..
c05ef67
100644
(file)
--- a/
src/simix/smx_context.c
+++ b/
src/simix/smx_context.c
@@
-1,6
+1,6
@@
/* a fast and simple context switching library */
/* 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
* 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 */
}
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);
/* 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 call
ed
by SIMIX_clean() to finalize the context module.
*/
void SIMIX_context_mod_exit(void)
{
*/
void SIMIX_context_mod_exit(void)
{