Friedrich-Alexander-Universität Erlangen-Nürnberg  /   Technische Fakultät  /   Department Informatik
KeyboardApplication Class Reference

Any class derived from Thread defines an application for StuBS. More...

#include <user/app2/kappl.h>

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

Public Member Functions

 KeyboardApplication ()
 Constructor.
 
void action () override
 Contains the application code. More...
 
- Public Member Functions inherited from Thread
 Thread ()
 Constructor Initializes the context using contextPrepare with the highest aligned address of the reserved_stack_space array as stack pointer (top of stack).
 
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...
 
WaitingroomgetWaitingroom () 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...
 

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 Protected Member Functions inherited from Thread
static void kickoff (Thread *object)
 Function to start a thread. More...
 
- Protected Attributes inherited from Thread
StackPointer stackpointer
 Current stack pointer of thread for context switch.
 

Detailed Description

Any class derived from Thread defines an application for StuBS.

Member Function Documentation

◆ action()

void KeyboardApplication::action ( )
overridevirtual

Contains the application code.

Implements Thread.


The documentation for this class was generated from the following files:
  • user/app2/kappl.h
  • user/app2/kappl.cc