From 37e14b779a6605fe42a0e0caae0b3303783f8acd Mon Sep 17 00:00:00 2001 From: Adrien Gougeon Date: Mon, 10 Jul 2023 12:51:24 +0200 Subject: [PATCH] update comm status BEFORE sending signals --- src/s4u/s4u_Comm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/s4u/s4u_Comm.cpp b/src/s4u/s4u_Comm.cpp index fe134094d3..d88103acea 100644 --- a/src/s4u/s4u_Comm.cpp +++ b/src/s4u/s4u_Comm.cpp @@ -314,12 +314,12 @@ 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."); - fire_on_start(); - fire_on_this_start(); kernel::actor::simcall_answered([this] { pimpl_->set_state(kernel::activity::State::READY); boost::static_pointer_cast(pimpl_)->start(); }); + fire_on_start(); + fire_on_this_start(); } else if (src_buff_ != nullptr) { // Sender side on_send(*this); on_this_send(*this); -- 2.20.1