The ROme OpTimistic Simulator  2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
barrier_t Struct Reference

Thread barrier definition. More...

#include <thread.h>

+ Collaboration diagram for barrier_t:

Data Fields

int num_threads
 Number of threads which will synchronize on the barrier.
 
atomic_t c1
 First synchronization counter.
 
atomic_t c2
 Second synchronization counter.
 
atomic_t barr
 

Detailed Description

Thread barrier definition.

Definition at line 102 of file thread.h.

Field Documentation

atomic_t barrier_t::barr

"Barrier in a barrier": this is used to wait for the leader to correctly reset the barrier before re-entering

Definition at line 106 of file thread.h.


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