1 /* Copyright (c) 2012-2018. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
9 int process_pending_connections(xbt_dynar_t q)
16 xbt_dynar_foreach (q, iter, comm) {
18 if (MSG_comm_test(comm)) {
19 status = MSG_comm_get_status(comm);
20 MSG_comm_destroy(comm);
21 xbt_assert(status == MSG_OK, "process_pending_connections() failed");
22 xbt_dynar_cursor_rm(q, &iter);