27 #ifndef _FG_BARRIER_H_ 28 #define _FG_BARRIER_H_
Protect shared data structures from concurrent modifications.
int pthread_barrier_wait(pthread_barrier_t *barrier)
Synchronizes participating threads at the barrier referenced by barrier.
Barrier attribute object.
Current number of threads waiting at the barrier.
int pthread_barrier_init(pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned count)
Allocates resources required to use the barrier referenced by barrier.
int pthread_barrier_destroy(pthread_barrier_t *barrier)
Destroys the barrier referenced by barrier.
Required number of threads have to wait at the barrier.
Thread to suspend its execution until the condition is satisfied.
Object for barrier synchronization.