gem5  v22.1.0.0
Public Member Functions | Public Attributes | List of all members
SwitchingFiber Class Reference
Inheritance diagram for SwitchingFiber:

Public Member Functions

 SwitchingFiber (const char *name, std::initializer_list< Fiber * > l)
void checkExpected ()
void main ()
 This method is called when this fiber is first run. More...
- Public Member Functions inherited from gem5::Fiber
virtual ~Fiber ()
void run ()
 Start executing the fiber represented by this object. More...
bool finished () const
 Returns whether the "main" function of this fiber has finished. More...
bool started () const
 Returns whether the "main" function of this fiber has started. More...
 Fiber (size_t stack_size=DefaultStackSize)
 Fiber (Fiber *link, size_t stack_size=DefaultStackSize)

Public Attributes

const char * name
std::vector< Fiber * > next

Additional Inherited Members

- Static Public Member Functions inherited from gem5::Fiber
static FibercurrentFiber ()
 Get a pointer to the current running Fiber. More...
static FiberprimaryFiber ()
 Get a pointer to the primary Fiber. More...
- Static Public Attributes inherited from gem5::Fiber
static const size_t DefaultStackSize = 0x50000
- Protected Member Functions inherited from gem5::Fiber
void setStarted ()

Detailed Description

Definition at line 73 of file

Constructor & Destructor Documentation

◆ SwitchingFiber()

SwitchingFiber::SwitchingFiber ( const char *  name,
std::initializer_list< Fiber * >  l 

Definition at line 100 of file

Member Function Documentation

◆ checkExpected()

void SwitchingFiber::checkExpected ( )

Definition at line 106 of file

References gem5::ArmISA::e, expected(), expectedIt, and name.

Referenced by main().

◆ main()

void SwitchingFiber::main ( )

This method is called when this fiber is first run.

Override it to give your fiber something to do. When main returns, the fiber will mark itself as finished and switch to its link fiber.

Implements gem5::Fiber.

Definition at line 114 of file

References checkExpected(), gem5::ArmISA::n, and next.

Member Data Documentation

◆ name

const char* SwitchingFiber::name

Definition at line 76 of file

Referenced by checkExpected().

◆ next

std::vector<Fiber *> SwitchingFiber::next

Definition at line 77 of file

Referenced by main().

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

Generated on Wed Dec 21 2022 10:23:07 for gem5 by doxygen 1.9.1