gem5 v24.0.0.0
|
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. | |
Public Member Functions inherited from gem5::Fiber | |
virtual | ~Fiber () |
void | run () |
Start executing the fiber represented by this object. | |
bool | finished () const |
Returns whether the "main" function of this fiber has finished. | |
bool | started () const |
Returns whether the "main" function of this fiber has started. | |
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 Fiber * | currentFiber () |
Get a pointer to the current running Fiber. | |
static Fiber * | primaryFiber () |
Get a pointer to the primary Fiber. | |
Static Public Attributes inherited from gem5::Fiber | |
static const size_t | DefaultStackSize = 0x50000 |
Protected Member Functions inherited from gem5::Fiber | |
void | setStarted () |
Definition at line 73 of file fiber.test.cc.
SwitchingFiber::SwitchingFiber | ( | const char * | name, |
std::initializer_list< Fiber * > | l ) |
Definition at line 100 of file fiber.test.cc.
void SwitchingFiber::checkExpected | ( | ) |
Definition at line 106 of file fiber.test.cc.
References gem5::ArmISA::e, expected(), expectedIt, and name.
Referenced by main().
|
virtual |
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 fiber.test.cc.
References checkExpected(), gem5::ArmISA::n, and next.
const char* SwitchingFiber::name |
Definition at line 76 of file fiber.test.cc.
Referenced by checkExpected().
std::vector<Fiber *> SwitchingFiber::next |
Definition at line 77 of file fiber.test.cc.
Referenced by main(), and tlm::tlm_endian_context_pool::push().