Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Task Class Reference
Override this class to create a Task that can be managed with the TaskManager. More...
#include <Task.h>
Public Member Functions | |
| Task () | |
| Contructor. | |
| Task (int _interval) | |
| Constructor. | |
| void | start () |
| Starts the task. | |
| virtual void | tick ()=0 |
| Virtual method which gets called at the specified interval. | |
| void | stop () |
| Stops the task from running. | |
| bool | isRunning () |
| Returns true if the task is running. | |
Protected Member Functions | |
| void | setInterval (int _interval) |
| Set the interval that the task tick method runs. | |
Detailed Description
Override this class to create a Task that can be managed with the TaskManager.
Definition at line 11 of file Task.h.
Constructor & Destructor Documentation
| Task | ( | int | _interval ) |
Member Function Documentation
| void setInterval | ( | int | _interval ) | [protected] |
| void start | ( | ) |
Starts the task.
Should be automatically called from the TaskManager when it is added.
| virtual void tick | ( | ) | [pure virtual] |
Virtual method which gets called at the specified interval.
Generated on Wed Jul 13 2022 20:54:05 by
1.7.2