Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make sure that the user don't try a detached receive
[simgrid.git] / src / s4u / s4u_comm.cpp
index 719700e..7729d3e 100644 (file)
@@ -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_);