A synchronization barrier. More...
A synchronization barrier.
Initialize with pthread_barrier_init(). For a zeroed out datum you do not need to call the initializer, it is enough to set pthread_barrier_t::count.
Definition at line 57 of file pthread_barrier.h.
#include <pthread_barrier.h>
Data Fields | |
struct pthread_barrier_waiting_node * | next |
The first waiting thread. | |
mutex_t | mutex |
Mutex to unlock to wake the thread up. | |
volatile int | count |
Wait for N more threads before waking everyone up. | |