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 56 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. | |
| volatile int pthread_barrier_t::count |
Wait for N more threads before waking everyone up.
Definition at line 60 of file pthread_barrier.h.
| mutex_t pthread_barrier_t::mutex |
Mutex to unlock to wake the thread up.
Definition at line 59 of file pthread_barrier.h.
| struct pthread_barrier_waiting_node* pthread_barrier_t::next |
The first waiting thread.
Definition at line 58 of file pthread_barrier.h.