Very simple cooperative round-robin task scheduler. See examples.
SimpleTask Class Reference
#include <SimpleScheduler.h>
Detailed Description
A defined function task requires a "holder" for SimpleScheduler to manage it. This is the holder class.
- See also:
- SimpleScheduler
- example1.h
- example2.h
- example3.h
- example4.h
- http://mbed.org/cookbook/SimpleScheduler
SimpleTask *task = new SimpleTask(100);
task->attach(func);
SimpleTask *task = new SimpleTask(100, func); // Every 100ms SimpleTask *task = new SimpleTask(1.0, func); // Every 1second
When creating new SimpleTasks you pass the time as a frequency of how often to call the task function. If the time is an integer then milliseconds is assumed. If the number you pass is a read (double) number then the time assumed is seconds.
Definition at line 64 of file SimpleScheduler.h.
Generated on Fri Jul 15 2022 08:21:53 by 1.7.2