X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b32344ed85aec79b48fdb3c22df878307f13f6f7..078a96e4b84369c23073bb68e15273030e9a357b:/src/s4u/s4u_Comm.cpp diff --git a/src/s4u/s4u_Comm.cpp b/src/s4u/s4u_Comm.cpp index d8c952b3c7..f119c5aff8 100644 --- a/src/s4u/s4u_Comm.cpp +++ b/src/s4u/s4u_Comm.cpp @@ -106,6 +106,13 @@ CommPtr Comm::set_dst_data(void** buff, size_t size) return this; } +CommPtr Comm::set_tracing_category(const std::string& category) +{ + xbt_assert(state_ == State::INITED, "Cannot change the tracing category of an exec after its start"); + tracing_category_ = category; + return this; +} + Comm* Comm::start() { xbt_assert(state_ == State::INITED, "You cannot use %s() once your communication started (not implemented)",