From 02078cc8b803ca657cccbc3aa87ef42dc20444fa Mon Sep 17 00:00:00 2001 From: Fred Suter Date: Wed, 17 May 2023 15:14:07 -0400 Subject: [PATCH] throw on_send and on_receive signals when doing a host-to-host Comm this is needed by instrumentation --- src/s4u/s4u_Comm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/s4u/s4u_Comm.cpp b/src/s4u/s4u_Comm.cpp index 6ec1ecd128..408d1a39b6 100644 --- a/src/s4u/s4u_Comm.cpp +++ b/src/s4u/s4u_Comm.cpp @@ -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(pimpl_)->start(); -- 2.20.1