Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

scheduler< TSchedulerPolicy, MAX_TASKS_ > Class Template Reference

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]

Add a task.

Add to the task list in priority order.

Definition at line 282 of file scheduler.h.

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.