X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d6e83c7257e124027f010d09aa196077888219ef..6917919d4099bd94f3fdbb56a3e255a7935a5a49:/src/s4u/s4u_Comm.cpp diff --git a/src/s4u/s4u_Comm.cpp b/src/s4u/s4u_Comm.cpp index 376d18de3a..c4b8bb4870 100644 --- a/src/s4u/s4u_Comm.cpp +++ b/src/s4u/s4u_Comm.cpp @@ -21,7 +21,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(s4u_comm, s4u_activity, "S4U asynchronous commun namespace simgrid::s4u { xbt::signal Comm::on_send; xbt::signal Comm::on_recv; -xbt::signal Comm::on_start; CommPtr Comm::set_copy_data_callback(const std::function& callback) { @@ -358,8 +357,10 @@ Comm* Comm::do_start() pimpl_->set_iface(this); pimpl_->set_actor(sender_); // Only throw the signal when both sides are here and the status is READY - if (pimpl_->get_state() != kernel::activity::State::WAITING) + if (pimpl_->get_state() != kernel::activity::State::WAITING) { on_start(*this); + on_this_start(*this); + } } state_ = State::STARTED;