X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e276e9953a9ab5894bbb623fc17ec79512efab5d..d206204d0b349954cc77a84c13604377c4ace00a:/src/simix/smx_process.c diff --git a/src/simix/smx_process.c b/src/simix/smx_process.c index cb7d6e7087..f6bc39dc2f 100644 --- a/src/simix/smx_process.c +++ b/src/simix/smx_process.c @@ -9,6 +9,7 @@ #include "xbt/log.h" #include "xbt/dict.h" #include "msg/mailbox.h" +#include "mc/mc.h" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_process, simix, "Logging specific to SIMIX (process)"); @@ -400,7 +401,7 @@ int SIMIX_process_is_suspended(smx_process_t process) int SIMIX_process_is_enabled(smx_process_t process) { - if (process->request && SIMIX_request_isEnabled(process->request)) + if (process->request && SIMIX_request_is_enabled(process->request)) return TRUE; return FALSE; @@ -413,12 +414,10 @@ xbt_dict_t SIMIX_process_get_properties(smx_process_t process) void SIMIX_pre_process_sleep(smx_req_t req) { -#ifdef HAVE_MC - if(_surf_do_model_check){ + if (MC_IS_ENABLED) { req->process_sleep.result = SIMIX_DONE; SIMIX_request_answer(req); } -#endif smx_action_t action = SIMIX_process_sleep(req->issuer, req->process_sleep.duration); xbt_fifo_push(action->request_list, req); req->issuer->waiting_action = action;