XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_async_waitall, "Messages specific for this s4u example");
class Sender {
- long messages_count; /* - number of tasks */
+ long messages_count; /* - number of messages */
long receivers_count; /* - number of receivers */
- double msg_size; /* - communication cost in bytes */
+ double msg_size; /* - message size in bytes */
public:
explicit Sender(std::vector<std::string> args)
msg_size = std::stod(args[2]);
receivers_count = std::stol(args[3]);
}
- void operator()()
+ void operator()() const
{
/* Vector in which we store all ongoing communications */
std::vector<simgrid::s4u::CommPtr> pending_comms;