Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Connect the right signal.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 7 Jun 2023 09:38:07 +0000 (11:38 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 7 Jun 2023 09:38:07 +0000 (11:38 +0200)
include/simgrid/s4u/Comm.hpp

index 2f07115..a92f87f 100644 (file)
@@ -68,7 +68,7 @@ public:
   /*! \static Add a callback fired when the send of any Comm is posted  */
   static void on_send_cb(const std::function<void(Comm const&)>& cb) { on_send.connect(cb); }
   /*! Add a callback fired when the send of this specific Comm is posted  */
-  void on_this_send_cb(const std::function<void(Comm const&)>& cb) { on_send.connect(cb); }
+  void on_this_send_cb(const std::function<void(Comm const&)>& cb) { on_this_send.connect(cb); }
   /*! \static Add a callback fired when the recv of any Comm is posted  */
   static void on_recv_cb(const std::function<void(Comm const&)>& cb) { on_recv.connect(cb); }
   /*! Add a callback fired when the recv of this specific Comm is posted  */