pthread_barrier_t Struct Reference

A synchronization barrier. More...

Detailed Description

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_nodenext
 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.
 

The documentation for this struct was generated from the following file: