6 #ifndef ABTD_STREAM_H_INCLUDED 7 #define ABTD_STREAM_H_INCLUDED 9 #ifdef HAVE_PTHREAD_BARRIER_INIT 10 static inline int ABTD_xstream_barrier_init(uint32_t num_waiters,
11 ABTD_xstream_barrier *p_barrier)
13 int ret = pthread_barrier_init(p_barrier, NULL, num_waiters);
17 static inline int ABTD_xstream_barrier_destroy(ABTD_xstream_barrier *p_barrier)
19 int ret = pthread_barrier_destroy(p_barrier);
23 static inline int ABTD_xstream_barrier_wait(ABTD_xstream_barrier *p_barrier)
25 return pthread_barrier_wait(p_barrier);
#define ABT_ERR_XSTREAM_BARRIER