X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ae855a0d996d06d373fbc233e78b0fbe7f1f2df6..806504b9602a886e391b54e458b2c1f7f42d3afb:/src/simix/private.h diff --git a/src/simix/private.h b/src/simix/private.h index 9095077e3c..fda2af9aa8 100644 --- a/src/simix/private.h +++ b/src/simix/private.h @@ -109,7 +109,8 @@ typedef struct s_smx_action { size_t *dst_buff_size; char copied; - void *data; /* User data associated to communication */ + void* src_data; /* User data associated to communication */ + void* dst_data; } comm; struct { @@ -124,7 +125,6 @@ typedef struct s_smx_action { }; #ifdef HAVE_TRACING - long long int counter; /* simix action unique identifier for instrumentation */ char *category; /* simix action category for instrumentation */ #endif } s_smx_action_t; @@ -238,11 +238,11 @@ static XBT_INLINE void SIMIX_context_runall(xbt_swag_t processes) */ static XBT_INLINE smx_context_t SIMIX_context_self(void) { - if (simix_global->context_factory == NULL) { - return NULL; + if (simix_global && simix_global->context_factory != NULL) { + return (*(simix_global->context_factory->self))(); } - return (*(simix_global->context_factory->self))(); + return NULL; } /**