X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6260d187764dc644d699e1a53454f7efdcc682df..7435797a62213e9e99d48c5968d273f6396ed988:/include/simgrid/s4u/Comm.hpp diff --git a/include/simgrid/s4u/Comm.hpp b/include/simgrid/s4u/Comm.hpp index 2f07115b35..e5b8ad486e 100644 --- a/include/simgrid/s4u/Comm.hpp +++ b/include/simgrid/s4u/Comm.hpp @@ -39,7 +39,6 @@ class XBT_PUBLIC Comm : public Activity_T { Comm() = default; Comm* do_start() override; -protected: static xbt::signal on_send; xbt::signal on_this_send; static xbt::signal on_recv; @@ -47,6 +46,7 @@ protected: inline static xbt::signal on_start; xbt::signal on_this_start; +protected: 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. @@ -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& 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& cb) { on_send.connect(cb); } + void on_this_send_cb(const std::function& 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& cb) { on_recv.connect(cb); } /*! Add a callback fired when the recv of this specific Comm is posted */ @@ -79,9 +79,9 @@ public: void on_this_start_cb(const std::function& cb) { on_this_start.connect(cb); } CommPtr set_copy_data_callback(const std::function& callback); - XBT_ATTRIB_DEPRECATED_v337("Please manifest if you actually need this function") static void copy_buffer_callback( + XBT_ATTRIB_DEPRECATED_v338("Please manifest if you actually need this function") static void copy_buffer_callback( kernel::activity::CommImpl*, void*, size_t); - XBT_ATTRIB_DEPRECATED_v337("Please manifest if you actually need this function") static void copy_pointer_callback( + XBT_ATTRIB_DEPRECATED_v338("Please manifest if you actually need this function") static void copy_pointer_callback( kernel::activity::CommImpl*, void*, size_t); ~Comm() override;