gem5 v24.0.0.0
|
#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. | |
Definition at line 46 of file barrier.hh.
|
inline |
Definition at line 61 of file barrier.hh.
|
inline |
Definition at line 66 of file barrier.hh.
References bCond, bMutex, generation, gem5::X86ISA::lock, numLeft, and numWaiting.
Referenced by gem5::BaseGlobalEvent::BarrierEvent::globalBarrier(), gem5::SimulatorThreads::runUntilLocalExit(), gem5::SimulatorThreads::terminateThreads(), and gem5::SimulatorThreads::thread_main().
|
private |
Condition variable for waiting on barrier.
Definition at line 52 of file barrier.hh.
Referenced by wait().
|
private |
Mutex to protect access to numLeft and generation.
Definition at line 50 of file barrier.hh.
Referenced by wait().
|
private |
|
private |
Number of threads remaining for the current generation.
Definition at line 58 of file barrier.hh.
Referenced by wait().
|
private |
Number of threads we should be waiting for before completing the barrier.
Definition at line 54 of file barrier.hh.
Referenced by wait().