X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/121e8462d6b912a252a9016683d2e3e021cde9a0..fd654461ba21a5d93bb5182e128e3f9bff385d45:/src/kernel/activity/CommImpl.hpp diff --git a/src/kernel/activity/CommImpl.hpp b/src/kernel/activity/CommImpl.hpp index 715483a39a..9595782c41 100644 --- a/src/kernel/activity/CommImpl.hpp +++ b/src/kernel/activity/CommImpl.hpp @@ -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 */