Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / src / s4u / s4u_Comm.cpp
index a36df4e..fe13409 100644 (file)
@@ -314,8 +314,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_start(*this);
-    on_this_start(*this);
+    fire_on_start();
+    fire_on_this_start();
     kernel::actor::simcall_answered([this] {
       pimpl_->set_state(kernel::activity::State::READY);
       boost::static_pointer_cast<kernel::activity::CommImpl>(pimpl_)->start();
@@ -364,8 +364,8 @@ Comm* Comm::do_start()
     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) {
-      on_start(*this);
-      on_this_start(*this);
+      fire_on_start();
+      fire_on_this_start();
     }
   }