A(rduino) OS
Simple Task Scheduler for Arduino Development Board
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
aos_run_list Struct Reference

defines the system run-list More...

#include <aos_sys_types.h>

Data Fields

struct task_cbprio_tl [AOS_TASK_PRIORITY_IDLE][2]
 defines a separate list for each priority, grouping the tasks of same priorities More...
 
struct task_cbidle
 idle task More...
 
struct task_cbwait
 contains tasks which are either paused or suspended More...
 
uint8_t active
 defines the active & expired lists More...
 

Detailed Description

defines the system run-list

Definition at line 58 of file aos_sys_types.h.

Field Documentation

uint8_t active

defines the active & expired lists

Definition at line 85 of file aos_sys_types.h.

struct task_cb* idle

idle task

Definition at line 75 of file aos_sys_types.h.

struct task_cb* prio_tl[AOS_TASK_PRIORITY_IDLE][2]

defines a separate list for each priority, grouping the tasks of same priorities

There are two run-lists. The active and expired one. The active list is selected by the active field. The scheduler works in a way that it schedules the task in priority order from the active list and moves them to the expired list once they're time quanta goes down to zero. Once there are no tasks available in the active list the active variable is switched to select the expired list as the active one (active = (active + 1) & 0x01).

Definition at line 70 of file aos_sys_types.h.

struct task_cb* wait

contains tasks which are either paused or suspended

Definition at line 80 of file aos_sys_types.h.


The documentation for this struct was generated from the following file: