X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8a0e2b82a1c0981a84e67f1bb4afb6e16fbf8c3a..1f43204aab7e713e6f5afa1c817f779281bc0693:/include/simgrid/msg.h diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h index c22f43367e..ea93d1b409 100644 --- a/include/simgrid/msg.h +++ b/include/simgrid/msg.h @@ -7,10 +7,12 @@ #define SIMGRID_MSG_H #include +#include #include #include #include #include +#include #include #include #include @@ -353,13 +355,7 @@ XBT_PUBLIC int MSG_sem_get_capacity(msg_sem_t sem); XBT_PUBLIC void MSG_sem_destroy(msg_sem_t sem); XBT_PUBLIC int MSG_sem_would_block(msg_sem_t sem); -/** @brief Opaque type representing a barrier identifier - * @ingroup msg_synchro - * @hideinitializer - */ - -#define MSG_BARRIER_SERIAL_PROCESS -1 -typedef struct s_msg_bar_t* msg_bar_t; +typedef sg_bar_t msg_bar_t; XBT_PUBLIC msg_bar_t MSG_barrier_init(unsigned int count); XBT_PUBLIC void MSG_barrier_destroy(msg_bar_t bar); XBT_PUBLIC int MSG_barrier_wait(msg_bar_t bar);