rwlock.c:16: error: syntax error before "pthread_barrier_t"
rwlock.c: In function `mutex_worker':
rwlock.c:44: warning: implicit declaration of function `pthread_barrier_wait'
rwlock.c:44: error: structure has no member named `bar'
rwlock.c: In function `rwlock_worker':
rwlock.c:54: error: structure has no member named `bar'
rwlock.c: In function `mutex_test':
rwlock.c:72: error: structure has no member named `bar'
rwlock.c: In function `rwlock_test':
rwlock.c:91: error: structure has no member named `bar'
rwlock.c: In function `main':
rwlock.c:105: warning: implicit declaration of function `pthread_barrier_init'
rwlock.c:105: error: structure has no member named `bar'
rwlock.c:113: warning: implicit declaration of function `pthread_barrier_destroy'
rwlock.c:113: error: structure has no member named `bar'