StuBS
GraphicsExample Class Reference

#include <user/graphics/full-example.h>

Inheritance diagram for GraphicsExample:
[legend]
Collaboration diagram for GraphicsExample:
[legend]

Public Member Functions

 GraphicsExample ()
 
void action () override
 Method that contains the thread's program code.
 
- Public Member Functions inherited from Thread
 Thread ()
 Constructor Initializes the context using prepareContext with the highest aligned address of the reserved_stack_space array as stack pointer (top of stack). Furthermore, assign each thread a unique id using a global variable idCounter. You have to declare and initialize it properly.
 
void go ()
 Activates the first thread on this CPU.
 
void resume (Thread *next)
 Switches from the currently running thread to the next one.
 
WaitingroomgetWaitingroom () const
 Returns the Waitingroom in which the thread is currently waiting.
 
void setWaitingroom (Waitingroom *w)
 Marks the thread as waiting for an event in Waitingroom w.
 

Private Attributes

Demon demon
 
Cat cat
 
ClockFace clock
 
Fire fire
 
FPS fps
 
PC pc
 
Pong pong
 
FileTitle title
 
MouseCursor cursor
 

Additional Inherited Members

- Public Attributes inherited from Thread
const size_t id
 Unique ID of thread.
 
volatile bool kill_flag
 Marker for a dying thread.
 
- Static Public Attributes inherited from Thread
static const size_t STACK_SIZE = 4096 * 4
 Stack size for each thread.
 
- Protected Member Functions inherited from Queue< T, ContainerType >::Node
 Node ()
 
- Static Protected Member Functions inherited from Thread
static void kickoff (Thread *object)
 Function to start a thread.
 
- Protected Attributes inherited from Thread
StackPointer stackpointer
 Current stack pointer of thread for context switch.
 

Constructor & Destructor Documentation

◆ GraphicsExample()

GraphicsExample::GraphicsExample ( )
inline

Member Function Documentation

◆ action()

void GraphicsExample::action ( )
overridevirtual

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.

Member Data Documentation

◆ demon

Demon GraphicsExample::demon
private

◆ cat

Cat GraphicsExample::cat
private

◆ clock

ClockFace GraphicsExample::clock
private

◆ fire

Fire GraphicsExample::fire
private

◆ fps

FPS GraphicsExample::fps
private

◆ pc

PC GraphicsExample::pc
private

◆ pong

Pong GraphicsExample::pong
private

◆ title

FileTitle GraphicsExample::title
private

◆ cursor

MouseCursor GraphicsExample::cursor
private

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