-XBT_LOG_NEW_DEFAULT_CATEGORY(msg_async_wait, "Messages specific for this s4u example");
-
-/* Main function of the Sender process */
-class sender {
- long messages_count; /* - number of tasks */
- long receivers_count; /* - number of receivers */
- double msg_size; /* - communication cost in bytes */
- simgrid::s4u::MailboxPtr mbox;
-
-public:
- explicit sender(std::vector<std::string> args)
-{
- xbt_assert(args.size() == 4, "The sender function expects 3 arguments from the XML deployment file");
- messages_count = std::stol(args[1]);
- msg_size = std::stod(args[2]);
- receivers_count = std::stol(args[3]);
-}
-void operator()()
+XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_async_wait, "Messages specific for this s4u example");
+
+static void sender(int argc, char** argv)