+/* Copyright (c) 2017. The SimGrid Team. All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
#include <iostream>
#include <simgrid/s4u.hpp>
#include <stdlib.h>
for (int i = 0; i < NUM_COMMS; i++) {
XBT_INFO("Sleeping for 3 seconds (for the %dth time)...", i + 1);
simgrid::s4u::this_actor::sleep_for(3.0);
- XBT_INFO("Calling wait_any() for %ld pending comms", pending_comms.size());
+ XBT_INFO("Calling wait_any() for %zu pending comms", pending_comms.size());
std::vector<simgrid::s4u::CommPtr>::iterator ret_it =
simgrid::s4u::Comm::wait_any(pending_comms.begin(), pending_comms.end());
XBT_INFO("Counting the number of completed comms...");