gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::System::Threads Class Reference

#include <system.hh>

Classes

class  const_iterator
struct  Thread

Public Member Functions

ThreadContextfindFree ()
ThreadContextoperator[] (ContextID id) const
void markActive (ContextID id)
int size () const
bool empty () const
int numRunning () const
int numActive () const
void quiesce (ContextID id)
void quiesceTick (ContextID id, Tick when)
const_iterator begin () const
const_iterator end () const

Private Member Functions

Threadthread (ContextID id)
const Threadthread (ContextID id) const
void insert (ThreadContext *tc)
void replace (ThreadContext *tc, ContextID id)

Private Attributes

std::vector< Threadthreads

Friends

class System

Detailed Description

Definition at line 121 of file system.hh.

Member Function Documentation

◆ begin()

const_iterator gem5::System::Threads::begin ( ) const
inline

Definition at line 232 of file system.hh.

◆ empty()

bool gem5::System::Threads::empty ( ) const
inline

Definition at line 216 of file system.hh.

References threads.

◆ end()

const_iterator gem5::System::Threads::end ( ) const
inline

Definition at line 233 of file system.hh.

References size().

◆ findFree()

ThreadContext * gem5::System::Threads::findFree ( )

Definition at line 121 of file system.cc.

References gem5::ThreadContext::Halted, thread(), and threads.

Referenced by gem5::doClone().

◆ insert()

◆ markActive()

void gem5::System::Threads::markActive ( ContextID id)
inline

Definition at line 213 of file system.hh.

References gem5::System::Threads::Thread::active, and thread().

◆ numActive()

int gem5::System::Threads::numActive ( ) const
inline

Definition at line 219 of file system.hh.

References gem5::X86ISA::count, thread(), and threads.

◆ numRunning()

int gem5::System::Threads::numRunning ( ) const

◆ operator[]()

ThreadContext * gem5::System::Threads::operator[] ( ContextID id) const
inline

Definition at line 208 of file system.hh.

References gem5::System::Threads::Thread::context, and thread().

◆ quiesce()

void gem5::System::Threads::quiesce ( ContextID id)

Definition at line 145 of file system.cc.

References DPRINTFS, gem5::ArmISA::t, and thread().

Referenced by gem5::ThreadContext::quiesce().

◆ quiesceTick()

void gem5::System::Threads::quiesceTick ( ContextID id,
Tick when )

◆ replace()

void gem5::System::Threads::replace ( ThreadContext * tc,
ContextID id )
private

◆ size()

◆ thread() [1/2]

Thread & gem5::System::Threads::thread ( ContextID id)
inlineprivate

◆ thread() [2/2]

const Thread & gem5::System::Threads::thread ( ContextID id) const
inlineprivate

Definition at line 145 of file system.hh.

References gem5::ArmISA::id, size(), and threads.

◆ System

friend class System
friend

Definition at line 154 of file system.hh.

References System.

Referenced by System.

Member Data Documentation

◆ threads

std::vector<Thread> gem5::System::Threads::threads
private

Definition at line 135 of file system.hh.

Referenced by empty(), findFree(), insert(), numActive(), numRunning(), size(), thread(), and thread().


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

Generated on Sat Oct 18 2025 08:06:55 for gem5 by doxygen 1.14.0