X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d13b1659a0c2551ee41b287a269e391bb2d7bc8a..8e339d5533f8be789f8431fbc00683fe1ff35fd9:/src/mc/mc_comm_pattern.cpp diff --git a/src/mc/mc_comm_pattern.cpp b/src/mc/mc_comm_pattern.cpp index a5b6e49f5e..96b53fc395 100644 --- a/src/mc/mc_comm_pattern.cpp +++ b/src/mc/mc_comm_pattern.cpp @@ -11,6 +11,9 @@ #include "mc_comm_pattern.h" #include "mc_smx.h" +#include "mc_xbt.hpp" + +using simgrid::mc::remote; extern "C" { @@ -23,7 +26,7 @@ mc_comm_pattern_t MC_comm_pattern_dup(mc_comm_pattern_t comm) res->index = comm->index; res->type = comm->type; res->comm_addr = comm->comm_addr; - res->rdv = strdup(comm->rdv); + res->rdv = xbt_strdup(comm->rdv); res->data_size = -1; res->data = NULL; if (comm->type == SIMIX_COMM_SEND) { @@ -125,8 +128,8 @@ void MC_handle_comm_pattern( comm_addr = simcall_comm_wait__get__comm(req); else // comm_addr = REMOTE(xbt_dynar_get_as(simcall_comm_waitany__get__comms(req), value, smx_synchro_t)): - MC_process_read_dynar_element(&mc_model_checker->process(), &comm_addr, - simcall_comm_waitany__get__comms(req), value, sizeof(comm_addr)); + simgrid::mc::read_element(mc_model_checker->process(), &comm_addr, + remote(simcall_comm_waitany__get__comms(req)), value, sizeof(comm_addr)); MC_complete_comm_pattern(pattern, comm_addr, MC_smx_simcall_get_issuer(req)->pid, backtracking); }