X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/18c57b27dd71ee7839c6a90368c845886a87d638..36dffb4f8633c75ddaf66e398f432a8485e9e419:/src/mc/mc_global.c diff --git a/src/mc/mc_global.c b/src/mc/mc_global.c index 68f11cd175..6ea92681d4 100644 --- a/src/mc/mc_global.c +++ b/src/mc/mc_global.c @@ -1,12 +1,17 @@ +/* Copyright (c) 2008-2012 Da SimGrid Team. All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #include #include #include #include #include "../surf/surf_private.h" -#include "../simix/private.h" +#include "../simix/smx_private.h" #include "xbt/fifo.h" -#include "private.h" +#include "mc_private.h" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_global, mc, @@ -185,7 +190,7 @@ void MC_wait_for_requests(void) SIMIX_process_runall(); xbt_dynar_foreach(simix_global->process_that_ran, iter, process) { req = &process->simcall; - if (req->call != REQ_NO_REQ && !MC_request_is_visible(req)) + if (req->call != SIMCALL_NONE && !MC_request_is_visible(req)) SIMIX_simcall_pre(req, 0); } } @@ -198,7 +203,7 @@ int MC_deadlock_check() if(xbt_swag_size(simix_global->process_list)){ deadlock = TRUE; xbt_swag_foreach(process, simix_global->process_list){ - if(process->simcall.call != REQ_NO_REQ + if(process->simcall.call != SIMCALL_NONE && MC_request_is_enabled(&process->simcall)){ deadlock = FALSE; break; @@ -580,7 +585,7 @@ void MC_diff(void){ int i; - XBT_INFO("Number of regions : %d", sn->num_reg); + XBT_INFO("Number of regions : %u", sn->num_reg); for(i=0; inum_reg; i++){