|
void | thread_main (EventQueue *queue) |
| The main function for all subordinate threads (i.e., all threads other than the main thread).
|
|
Definition at line 66 of file simulate.cc.
◆ SimulatorThreads() [1/3]
gem5::SimulatorThreads::SimulatorThreads |
( |
| ) |
|
|
delete |
◆ SimulatorThreads() [2/3]
◆ SimulatorThreads() [3/3]
gem5::SimulatorThreads::SimulatorThreads |
( |
uint32_t | num_queues | ) |
|
|
inline |
◆ ~SimulatorThreads()
gem5::SimulatorThreads::~SimulatorThreads |
( |
| ) |
|
|
inline |
◆ operator=()
◆ runUntilLocalExit()
void gem5::SimulatorThreads::runUntilLocalExit |
( |
| ) |
|
|
inline |
◆ terminateThreads()
void gem5::SimulatorThreads::terminateThreads |
( |
| ) |
|
|
inline |
◆ thread_main()
void gem5::SimulatorThreads::thread_main |
( |
EventQueue * | queue | ) |
|
|
inlineprotected |
The main function for all subordinate threads (i.e., all threads other than the main thread).
These threads start by waiting on threadBarrier. Once all threads have arrived at threadBarrier, they enter the simulation loop concurrently. When they exit the loop, they return to waiting on threadBarrier. This process is repeated until the simulation terminates.
Definition at line 151 of file simulate.cc.
References barrier, gem5::doSimLoop(), terminate, and gem5::Barrier::wait().
Referenced by runUntilLocalExit().
◆ barrier
Barrier gem5::SimulatorThreads::barrier |
|
protected |
◆ numQueues
uint32_t gem5::SimulatorThreads::numQueues |
|
protected |
◆ terminate
std::atomic<bool> gem5::SimulatorThreads::terminate |
|
protected |
◆ threads
std::vector<std::thread> gem5::SimulatorThreads::threads |
|
protected |
The documentation for this class was generated from the following file: