Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This is a CommImpl*.
[simgrid.git] / src / kernel / activity / CommImpl.hpp
index 715483a..9595782 100644 (file)
@@ -17,6 +17,7 @@ namespace activity {
 
 class XBT_PUBLIC CommImpl : public ActivityImpl {
   ~CommImpl() override;
+  void cleanupSurf();
 
 public:
   enum class Type { SEND = 0, RECEIVE, READY, DONE };
@@ -30,7 +31,6 @@ public:
   void finish() override;
   void cancel();
   double remains();
-  void cleanupSurf(); // FIXME: make me protected
 
   CommImpl::Type type;          /* Type of the communication (SIMIX_COMM_SEND or SIMIX_COMM_RECEIVE) */
   smx_mailbox_t mbox = nullptr; /* Rendez-vous where the comm is queued */
@@ -47,7 +47,7 @@ public:
       nullptr; /* Filter function used by the other side. It is used when
 looking if a given communication matches my needs. For that, myself must match the
 expectations of the other side, too. See  */
-  void (*copy_data_fun)(smx_activity_t, void*, size_t) = nullptr;
+  void (*copy_data_fun)(simgrid::kernel::activity::CommImpl*, void*, size_t) = nullptr;
 
   /* Surf action data */
   resource::Action* surf_action_ = nullptr; /* The Surf communication action encapsulated */