return *this;
}
-CommImpl::CommImpl(s4u::Host* from, s4u::Host* to, double bytes)
- : size_(bytes), detached_(true), type_(Type::SEND), from_(from), to_(to)
+CommImpl::CommImpl(s4u::Host* from, s4u::Host* to, double bytes) : size_(bytes), detached_(true), from_(from), to_(to)
{
state_ = State::READY;
}
void post() override;
void finish() override;
- const CommImpl::Type type_; /* Type of the communication (SEND or RECEIVE) */
+ const Type type_ = Type::SEND; /* Type of the communication (SEND or RECEIVE) */
#if SIMGRID_HAVE_MC
MailboxImpl* mbox_cpy = nullptr; /* Copy of the rendez-vous where the comm is queued, MC needs it for DPOR