|
Aurore
A Switch-like interface for your app, on every screen
|
#include <aurore/core/task.hpp>
Public Member Functions | |
| RepeatingTask (Time period) | |
| virtual void | run ()=0 |
| void | start () |
| void | stop () |
| aurore::RepeatingTask::RepeatingTask | ( | Time | period | ) |
Create a RepeatingTask with the given period in ms.
The task is guaranteed to wait for at least the given period of time between handler runs, but it can wait for slightly longer (usually less than a ms late)
|
pure virtual |
Task handler executed repeatedly on the main thread at the given period.
| void aurore::RepeatingTask::start | ( | ) |
Starts the task.
| void aurore::RepeatingTask::stop | ( | ) |
Stops the task.