Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

ischeduler Class Reference

Scheduler base. More...

#include <scheduler.h>

Inherited by scheduler< TSchedulerPolicy, MAX_TASKS_ >.

Public Member Functions

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.

Protected Member Functions

 ischeduler (etl::ivector< etl::task * > &task_list_)
 Constructor.

Detailed Description

Scheduler base.

Definition at line 225 of file scheduler.h.


Constructor & Destructor Documentation

ischeduler ( etl::ivector< etl::task * > &  task_list_ ) [protected]

Constructor.

Definition at line 317 of file scheduler.h.


Member Function Documentation

void add_task ( etl::task task )

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 
)

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 (  )

Force the scheduler to exit.

Definition at line 273 of file scheduler.h.

bool scheduler_is_running (  ) const

Get the running state for the scheduler.

Definition at line 265 of file scheduler.h.

void set_idle_callback ( etl::ifunction< void > &  callback )

Set the idle callback.

Definition at line 241 of file scheduler.h.

void set_scheduler_running ( bool  scheduler_running_ )

Set the running state for the scheduler.

Definition at line 257 of file scheduler.h.

void set_watchdog_callback ( etl::ifunction< void > &  callback )

Set the watchdog callback.

Definition at line 249 of file scheduler.h.