Go to the documentation of this file.
40 #include <gtest/gtest.h>
42 #include <initializer_list>
57 class StartingFiber :
public Fiber
66 ASSERT_FALSE(fiber.started());
70 ASSERT_TRUE(fiber.started());
101 const char *
name, std::initializer_list<Fiber *>
l) :
110 EXPECT_EQ(
e,
this) <<
"Expected " <<
e->name <<
", got " <<
name;
117 for (
auto &
n :
next) {
142 "Didn't exactly use up the expected Fiber sequence";
void run()
Start executing the fiber represented by this object.
LinkedFiber(Fiber *link, int index)
static Fiber * primaryFiber()
Get a pointer to the primary Fiber.
void main()
This method is called when this fiber is first run.
std::vector< Fiber * > next
TEST(Fiber, Starting)
This test is checking if the "started" member has its expected value before and after the fiber runs.
void main()
This method is called when this fiber is first run.
This class represents a fiber, which is a light weight sort of thread which is cooperatively schedule...
const std::string & name()
std::vector< SwitchingFiber * >::iterator expectedIt
bool finished() const
Returns whether the "main" function of this fiber has finished.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
SwitchingFiber(const char *name, std::initializer_list< Fiber * > l)
std::vector< SwitchingFiber * > expected({ &a, &b, &a, &a, &a, &b, &c, &a, &c, &c, &c })
Generated on Tue Sep 21 2021 12:24:56 for gem5 by doxygen 1.8.17