#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)");
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;
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;