Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr/gitroot/simgrid/simgrid
[simgrid.git] / examples / msg / chainsend / common.h
1 /* Copyright (c) 2012-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #ifndef COMMON_H
8 #define COMMON_H
9
10 #include "simgrid/msg.h"
11 #include "xbt/sysdep.h"
12
13 static XBT_INLINE void queue_pending_connection(msg_comm_t comm, xbt_dynar_t q)
14 {
15   xbt_dynar_push(q, &comm);
16 }
17
18 int process_pending_connections(xbt_dynar_t q);
19
20 #endif /* COMMON_H */