X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8f53b49a3b699b15a97868ce7a137e9e43de444c..d747238ce054a5db96974c9b2c888f922505f93b:/include/simix/context.h diff --git a/include/simix/context.h b/include/simix/context.h index 7775c66ac8..9d8ea2e8b6 100644 --- a/include/simix/context.h +++ b/include/simix/context.h @@ -11,6 +11,7 @@ #include "xbt/swag.h" #include "simix/datatypes.h" +#include "gras_config.h" SG_BEGIN_DECL() /******************************** Context *************************************/ @@ -58,7 +59,12 @@ typedef void (*smx_ctx_factory_initializer_t)(smx_context_factory_t*); extern smx_ctx_factory_initializer_t smx_factory_initializer_to_use; extern char* smx_context_factory_name; extern int smx_context_stack_size; + +#ifdef CONTEXT_THREADS +extern __thread smx_context_t smx_current_context; +#else extern smx_context_t smx_current_context; +#endif /* *********************** */ /* Context type definition */