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.
scheduler< TSchedulerPolicy, MAX_TASKS_ > Class Template Reference
Scheduler. More...
#include <scheduler.h>
Inherits etl::ischeduler.
Public Member Functions | |
void | start () |
Start the scheduler. | |
void | set_idle_callback (etl::ifunction< void > &callback) |
Set the idle callback. | |
void | set_watchdog_callback (etl::ifunction< void > &callback) |
Set the watchdog callback. | |
void | set_scheduler_running (bool scheduler_running_) |
Set the running state for the scheduler. | |
bool | scheduler_is_running () const |
Get the running state for the scheduler. | |
void | exit_scheduler () |
Force the scheduler to exit. | |
void | add_task (etl::task &task) |
Add a task. | |
template<typename TSize > | |
void | add_task_list (etl::task **p_tasks, TSize size) |
Add a task list. |
Detailed Description
template<typename TSchedulerPolicy, size_t MAX_TASKS_>
class etl::scheduler< TSchedulerPolicy, MAX_TASKS_ >
Scheduler.
Definition at line 357 of file scheduler.h.
Member Function Documentation
void add_task | ( | etl::task & | task ) | [inherited] |
void add_task_list | ( | etl::task ** | p_tasks, |
TSize | size | ||
) | [inherited] |
Add a task list.
Adds to the tasks to the internal task list in priority order. Input order is ignored.
Definition at line 303 of file scheduler.h.
void exit_scheduler | ( | ) | [inherited] |
Force the scheduler to exit.
Definition at line 273 of file scheduler.h.
bool scheduler_is_running | ( | ) | const [inherited] |
Get the running state for the scheduler.
Definition at line 265 of file scheduler.h.
void set_idle_callback | ( | etl::ifunction< void > & | callback ) | [inherited] |
Set the idle callback.
Definition at line 241 of file scheduler.h.
void set_scheduler_running | ( | bool | scheduler_running_ ) | [inherited] |
Set the running state for the scheduler.
Definition at line 257 of file scheduler.h.
void set_watchdog_callback | ( | etl::ifunction< void > & | callback ) | [inherited] |
Set the watchdog callback.
Definition at line 249 of file scheduler.h.
void start | ( | ) | [virtual] |
Start the scheduler.
SEQUENCIAL_SINGLE Only calls the task to process work once, if it has work to do.
Implements ischeduler.
Definition at line 375 of file scheduler.h.
Generated on Tue Jul 12 2022 14:05:54 by
