Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
throw on_send and on_receive signals when doing a host-to-host Comm
authorFred Suter <suterf@ornl.gov>
Wed, 17 May 2023 19:14:07 +0000 (15:14 -0400)
committerFred Suter <suterf@ornl.gov>
Mon, 22 May 2023 12:37:01 +0000 (08:37 -0400)
this is needed by instrumentation

src/s4u/s4u_Comm.cpp

index 6ec1ecd..408d1a3 100644 (file)
@@ -304,6 +304,8 @@ Comm* Comm::do_start()
     xbt_assert(src_buff_ == nullptr && dst_buff_ == nullptr,
                "Direct host-to-host communications cannot carry any data.");
     XBT_DEBUG("host-to-host Comm. Pimpl already created and set, just start it.");
+    on_send(*this);
+    on_recv(*this);
     kernel::actor::simcall_answered([this] {
       pimpl_->set_state(kernel::activity::State::READY);
       boost::static_pointer_cast<kernel::activity::CommImpl>(pimpl_)->start();