gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::Barrier Class Reference

#include <barrier.hh>

Public Member Functions

 Barrier (unsigned _numWaiting)
 
bool wait ()
 

Private Attributes

std::mutex bMutex
 Mutex to protect access to numLeft and generation.
 
std::condition_variable bCond
 Condition variable for waiting on barrier.
 
unsigned numWaiting
 Number of threads we should be waiting for before completing the barrier.
 
unsigned generation
 Generation of this barrier.
 
unsigned numLeft
 Number of threads remaining for the current generation.
 

Detailed Description

Definition at line 46 of file barrier.hh.

Constructor & Destructor Documentation

◆ Barrier()

gem5::Barrier::Barrier ( unsigned _numWaiting)
inline

Definition at line 61 of file barrier.hh.

Member Function Documentation

◆ wait()

Member Data Documentation

◆ bCond

std::condition_variable gem5::Barrier::bCond
private

Condition variable for waiting on barrier.

Definition at line 52 of file barrier.hh.

Referenced by wait().

◆ bMutex

std::mutex gem5::Barrier::bMutex
private

Mutex to protect access to numLeft and generation.

Definition at line 50 of file barrier.hh.

Referenced by wait().

◆ generation

unsigned gem5::Barrier::generation
private

Generation of this barrier.

Definition at line 56 of file barrier.hh.

Referenced by wait().

◆ numLeft

unsigned gem5::Barrier::numLeft
private

Number of threads remaining for the current generation.

Definition at line 58 of file barrier.hh.

Referenced by wait().

◆ numWaiting

unsigned gem5::Barrier::numWaiting
private

Number of threads we should be waiting for before completing the barrier.

Definition at line 54 of file barrier.hh.

Referenced by wait().


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

Generated on Tue Jun 18 2024 16:24:09 for gem5 by doxygen 1.11.0