|
gem5
v19.0.0.0
|
Public Member Functions | |
| LinkedFiber (Fiber *link, int index) | |
| void | main () |
| This method is called when this fiber is first run. More... | |
Public Member Functions inherited from Fiber | |
| Fiber (size_t stack_size=DefaultStackSize) | |
| stack_size is the size of the stack available to this fiber. More... | |
| Fiber (Fiber *link, size_t stack_size=DefaultStackSize) | |
| 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... | |
Public Attributes | |
| const int | index |
Additional Inherited Members | |
Static Public Member Functions inherited from Fiber | |
| static Fiber * | currentFiber () |
| Get a pointer to the current running Fiber. More... | |
| static Fiber * | primaryFiber () |
| Get a pointer to the primary Fiber. More... | |
Static Public Attributes inherited from Fiber | |
| static const size_t | DefaultStackSize = 0x50000 |
Protected Member Functions inherited from Fiber | |
| void | setStarted () |
Definition at line 150 of file fiber.test.cc.
|
inline |
Definition at line 154 of file fiber.test.cc.
|
inlinevirtual |
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 Fiber.
Definition at line 157 of file fiber.test.cc.
References EXPECT_EQ.
| const int LinkedFiber::index |
Definition at line 153 of file fiber.test.cc.