pthread_barrier_t Struct Reference

A synchronization barrier. More...

Detailed Description

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. More...
 
mutex_t mutex
 Mutex to unlock to wake the thread up. More...
 
volatile int count
 Wait for N more threads before waking everyone up. More...
 

Field Documentation

◆ count

volatile int pthread_barrier_t::count

Definition at line 61 of file pthread_barrier.h.

◆ mutex

mutex_t pthread_barrier_t::mutex

Definition at line 60 of file pthread_barrier.h.

◆ next

struct pthread_barrier_waiting_node* pthread_barrier_t::next

Definition at line 59 of file pthread_barrier.h.


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