X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bb36cf777ddcaaaf678f4476dd239b2f86157955..b6a6893f1834bfbdf110e501a519a5be61e08347:/src/mc/mc_comm_pattern.h diff --git a/src/mc/mc_comm_pattern.h b/src/mc/mc_comm_pattern.h index 828d1748b5..1bef9c1265 100644 --- a/src/mc/mc_comm_pattern.h +++ b/src/mc/mc_comm_pattern.h @@ -43,9 +43,22 @@ struct PatternCommunication { std::memset(&comm_addr, 0, sizeof(comm_addr)); } - // No copy: - PatternCommunication(PatternCommunication const&) = delete; - PatternCommunication& operator=(PatternCommunication const&) = delete; + PatternCommunication dup() const + { + simgrid::mc::PatternCommunication res; + // num? + res.comm_addr = this->comm_addr; + res.type = this->type; + // src_proc? + // dst_proc? + res.dst_proc = this->dst_proc; + res.dst_host = this->dst_host; + res.rdv = this->rdv; + res.data = this->data; + // tag? + res.index = this->index; + return res; + } }; @@ -116,9 +129,6 @@ XBT_PRIVATE void MC_complete_comm_pattern(xbt_dynar_t list, smx_synchro_t comm_a XBT_PRIVATE void MC_restore_communications_pattern(simgrid::mc::State* state); -XBT_PRIVATE simgrid::mc::PatternCommunication* MC_comm_pattern_dup(simgrid::mc::PatternCommunication* comm); -XBT_PRIVATE xbt_dynar_t MC_comm_patterns_dup(xbt_dynar_t state); - XBT_PRIVATE void MC_state_copy_incomplete_communications_pattern(simgrid::mc::State* state); XBT_PRIVATE void MC_state_copy_index_communications_pattern(simgrid::mc::State* state);