Go to the documentation of this file.
28 #ifndef __BASE_FIBER_HH__
29 #define __BASE_FIBER_HH__
34 #if defined(__APPLE__) && defined(__MACH__)
35 #define _XOPEN_SOURCE 600
45 #include "config/have_valgrind.hh"
131 virtual void main() = 0;
148 unsigned valgrindStackId;
156 #endif // __BASE_FIBER_HH__
Fiber(size_t stack_size=DefaultStackSize)
bool finished() const
Returns whether the "main" function of this fiber has finished.
static Fiber * primaryFiber()
Get a pointer to the primary Fiber.
const static size_t DefaultStackSize
static void entryTrampoline()
This class represents a fiber, which is a light weight sort of thread which is cooperatively schedule...
static Fiber * currentFiber()
Get a pointer to the current running Fiber.
void run()
Start executing the fiber represented by this object.
bool started() const
Returns whether the "main" function of this fiber has started.
virtual void main()=0
This method is called when this fiber is first run.
Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17