if (args.size() == 3) { // first ring
deadline_ = std::stod(args[2]);
- start_time_ = simgrid::s4u::Engine::instance()->getClock();
+ start_time_ = simgrid::s4u::Engine::getClock();
XBT_DEBUG("Create a new Chord ring...");
} else {
known_id_ = std::stoi(args[2]);
int answer_id = -1; // answer (used by some types of messages)
simgrid::s4u::MailboxPtr answer_to; // mailbox to send an answer to (if any)
- ChordMessage(e_message_type_t type) : type(type) { issuer_host_name = simgrid::s4u::this_actor::host()->name(); }
+ explicit ChordMessage(e_message_type_t type) : type(type)
+ {
+ issuer_host_name = simgrid::s4u::this_actor::host()->name();
+ }
~ChordMessage() = default;
};