Loading...
Searching...
No Matches
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.
 

Field Documentation

◆ count

volatile int pthread_barrier_t::count

Wait for N more threads before waking everyone up.

Definition at line 61 of file pthread_barrier.h.

◆ mutex

mutex_t pthread_barrier_t::mutex

Mutex to unlock to wake the thread up.

Definition at line 60 of file pthread_barrier.h.

◆ next

struct pthread_barrier_waiting_node* pthread_barrier_t::next

The first waiting thread.

Definition at line 59 of file pthread_barrier.h.


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