 |
Flowgrind
Advanced TCP traffic generator
|
Go to the documentation of this file.
27 #ifndef _FG_BARRIER_H_
28 #define _FG_BARRIER_H_
int tripCount
Current number of threads waiting at the barrier.
int pthread_barrier_wait(pthread_barrier_t *barrier)
Synchronizes participating threads at the barrier referenced by barrier.
pthread_cond_t cond
Thread to suspend its execution until the condition is satisfied.
int pthread_barrier_destroy(pthread_barrier_t *barrier)
Destroys the barrier referenced by barrier.
int pthread_barrier_init(pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned count)
Allocates resources required to use the barrier referenced by barrier.
pthread_mutex_t mutex
Protect shared data structures from concurrent modifications.
Object for barrier synchronization.
int count
Required number of threads have to wait at the barrier.
int pthread_barrierattr_t
Barrier attribute object.