Initializes a blocking barrier.
#include <synch.h>
int barrier_init (
barrier_t *bp,
int threads );
(IN) Points to the barrier to be initialized.
(IN) Specifies the number of threads that must reach the barrier.
If successful, returns zero; otherwise, returns -1 and sets errno to one of the following:
A barrier should not be reinitialized with the barrier_init function when threads are waiting on the barrier.