gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
LinkedFiber Class Reference
Inheritance diagram for LinkedFiber:
gem5::Fiber

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 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 int index
 

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
const static size_t DefaultStackSize = 0x50000
 
- Protected Member Functions inherited from gem5::Fiber
void setStarted ()
 

Detailed Description

Definition at line 149 of file fiber.test.cc.

Constructor & Destructor Documentation

◆ LinkedFiber()

LinkedFiber::LinkedFiber ( Fiber link,
int  index 
)
inline

Definition at line 153 of file fiber.test.cc.

Member Function Documentation

◆ main()

void LinkedFiber::main ( )
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 gem5::Fiber.

Definition at line 156 of file fiber.test.cc.

References currentIndex, and index.

Member Data Documentation

◆ index

const int LinkedFiber::index

Definition at line 152 of file fiber.test.cc.

Referenced by main().


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

Generated on Tue Sep 21 2021 12:27:01 for gem5 by doxygen 1.8.17