18 #ifndef HAVE_PTHREAD_BARRIER_WAIT
20 #ifndef PTHREAD_BARRIER_SERIAL_THREAD
21 #define PTHREAD_BARRIER_SERIAL_THREAD (-1)
struct pg_pthread_barrier pthread_barrier_t
int pthread_barrier_wait(pthread_barrier_t *barrier)
int pthread_barrier_init(pthread_barrier_t *barrier, const void *attr, int count)
int pthread_barrier_destroy(pthread_barrier_t *barrier)
static THREAD_BARRIER_T barrier