X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4e73c03c087fd07184d9ed45224f7fbad24e686e..f8c51e91f402a7b7bbe72fb61af59ddaad7d5cf8:/src/smpi/mpi/smpi_request.cpp diff --git a/src/smpi/mpi/smpi_request.cpp b/src/smpi/mpi/smpi_request.cpp index dc751be4bf..2ba19966ab 100644 --- a/src/smpi/mpi/smpi_request.cpp +++ b/src/smpi/mpi/smpi_request.cpp @@ -512,8 +512,11 @@ void Request::start() XBT_DEBUG("send simcall posted"); /* FIXME: detached sends are not traceable (action_ == nullptr) */ - if (action_ != nullptr) - simcall_set_category(action_, TRACE_internal_smpi_get_category()); + if (action_ != nullptr) { + std::string category = TRACE_internal_smpi_get_category(); + simgrid::simix::simcall([this, category] { this->action_->set_category(category); }); + } + if (async_small_thresh != 0 || ((flags_ & MPI_REQ_RMA) != 0)) xbt_mutex_release(mut); }