#include <user/graphics/fps.h>
|
| FPS () |
|
void | show () |
| Prints the FPS.
|
|
void | frame (bool drawn) |
| FPS counting function.
|
|
void | action () |
| Method that contains the thread's program 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.
|
|
Waitingroom * | getWaitingroom () 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 .
|
|
◆ FPS()
◆ show()
◆ frame()
void FPS::frame |
( |
bool |
drawn | ) |
|
FPS counting function.
- Parameters
-
drawn | Specifies whether the frame was written to video memory |
◆ action()
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.
◆ count_drawn
volatile unsigned FPS::count_drawn |
|
private |
◆ count_undrawn
volatile unsigned FPS::count_undrawn |
|
private |
◆ gout
The documentation for this class was generated from the following files: