class XBT_PUBLIC CommImpl : public ActivityImpl {
~CommImpl() override;
+ void cleanupSurf();
public:
enum class Type { SEND = 0, RECEIVE, READY, DONE };
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 */
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 */