Aufgabe 7: Anwendung
Fire Class Reference
![+](closed.png)
![+](closed.png)
Public Member Functions | |
virtual void | action () |
Method that contains the thread's program code. More... | |
void | ignite () |
void | burn () |
![]() | |
Thread () | |
Constructor Initializes the context using prepareContext with the highest aligned address of the reserved_stack_space array as stack pointer (top of stack). More... | |
void | go () |
Activates the first thread on this CPU. More... | |
void | resume (Thread *next) |
Switches from the currently running thread to the next one. More... | |
Waitingroom * | getWaitingroom () const |
Returns the Waitingroom in which the thread is currently waiting. More... | |
void | setWaitingroom (Waitingroom *w) |
Marks the thread as waiting for an event in Waitingroom w . More... | |
Static Public Attributes | |
static const unsigned | max_height = 400 |
static const unsigned | max_width = 1920 |
![]() | |
static const size_t | STACK_SIZE = 4096 * 4 |
Stack size for each thread. | |
Additional Inherited Members | |
![]() | |
const size_t | id |
Unique ID of thread. | |
volatile bool | kill_flag |
Marker for a dying thread. | |
![]() | |
static void | kickoff (Thread *object) |
Function to start a thread. More... | |
![]() | |
StackPointer | stackpointer |
Current stack pointer of thread for context switch. | |
Member Function Documentation
|
virtual |
Method that contains the thread's program code.
Derived classes are meant to override this method to provide meaningful code to be run in this thread.
Implements Thread.
The documentation for this class was generated from the following files:
- user/graphics/fire.h
- user/graphics/fire.cc