26 if ((
error = pthread_cond_init(&
barrier->cond, NULL)) != 0)
30 pthread_cond_destroy(&
barrier->cond);
54 pthread_cond_broadcast(&
barrier->cond);
64 }
while (
barrier->sense == initial_sense);
74 pthread_cond_destroy(&
barrier->cond);
75 pthread_mutex_destroy(&
barrier->mutex);
#define Assert(condition)
#define PTHREAD_BARRIER_SERIAL_THREAD
static THREAD_BARRIER_T barrier
int pthread_mutex_unlock(pthread_mutex_t *mp)
int pthread_mutex_lock(pthread_mutex_t *mp)
int pthread_mutex_init(pthread_mutex_t *mp, void *attr)
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)