From: Fred Suter Date: Wed, 31 May 2023 14:10:41 +0000 (-0400) Subject: improve comment X-Git-Tag: v3.34~88 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d6e83c7257e124027f010d09aa196077888219ef improve comment --- diff --git a/include/simgrid/s4u/Comm.hpp b/include/simgrid/s4u/Comm.hpp index 2577c88845..3091cdd7f5 100644 --- a/include/simgrid/s4u/Comm.hpp +++ b/include/simgrid/s4u/Comm.hpp @@ -44,7 +44,11 @@ protected: static xbt::signal on_recv; static xbt::signal on_start; - void fire_on_completion() const override { /* Do nothing */ } + void fire_on_completion() const override { + /* The completion signal of a Comm has to be thrown only once and not by the sender AND the receiver. + then Comm::on_completion is thrown in the kernel in CommImpl::finish. + */ + } void fire_on_veto() const override { on_veto(const_cast(*this)); } void fire_on_suspend() const override { on_suspend(*this); } void fire_on_resume() const override { on_resume(*this); }