From: Martin Quinson Date: Wed, 7 Jun 2017 23:54:44 +0000 (+0200) Subject: Make sure that the user don't try a detached receive X-Git-Tag: v3.16~107 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c8b31ee6aba2b75d54acd9c94514d54da16168d6?ds=sidebyside Make sure that the user don't try a detached receive --- diff --git a/src/s4u/s4u_comm.cpp b/src/s4u/s4u_comm.cpp index 719700e0f1..7729d3e6f9 100644 --- a/src/s4u/s4u_comm.cpp +++ b/src/s4u/s4u_comm.cpp @@ -88,6 +88,7 @@ void Comm::start() { matchFunction_, cleanFunction_, copyDataFunction_, userData_, detached_); } else if (dstBuff_ != nullptr) { // Receiver side + xbt_assert(not detached_, "Receive cannot be detached"); pimpl_ = simcall_comm_irecv(receiver_, mailbox_->getImpl(), dstBuff_, &dstBuffSize_, matchFunction_, copyDataFunction_, userData_, rate_);