Test application.
More...
#include <user/app1/appl.h>
|
| Application () |
| Constructor.
|
|
void | action () override |
| Contains the application code.
|
|
| 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.
|
|
Test application.
Usually it is sufficient to increment and output a number endlessly in a loop.
- Note
- Any class derived from Thread defines an application for StuBS.
◆ Application() [1/2]
◆ Application() [2/2]
Application::Application |
( |
| ) |
|
|
inline |
◆ operator=()
◆ action()
void Application::action |
( |
| ) |
|
|
overridevirtual |
Contains the application code.
Implements Thread.
The documentation for this class was generated from the following files: