X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2aaa919aa7451546f9576b3a71fc41f896c24b31..9e6224ecd95ff7b6452fe9b2c088138877797542:/examples/msg/chainsend/common.h diff --git a/examples/msg/chainsend/common.h b/examples/msg/chainsend/common.h index f0d9997bd6..eaf2de159b 100644 --- a/examples/msg/chainsend/common.h +++ b/examples/msg/chainsend/common.h @@ -4,6 +4,13 @@ #include "msg/msg.h" #include "xbt/sysdep.h" +static XBT_INLINE void queue_pending_connection(msg_comm_t comm, xbt_dynar_t q) +{ + xbt_dynar_push(q, &comm); +} + +int process_pending_connections(xbt_dynar_t q); + #define MESSAGE_SIZE 1 #define HOSTNAME_LENGTH 20