Interface: tos.interfaces.Scheduler

interface Scheduler

The interface to a TinyOS task scheduler.

Author:
Philip Levis
Date:
January 19 2005
See:
TEP 106: Tasks and Schedulers
TEP 107: Boot Sequence

Commands
command void init() Initialize the scheduler.
command bool runNextTask() Run the next task if one is waiting, otherwise return immediately.
command void taskLoop() Enter an infinite task-running loop.

Commands - Details

init

command void init()

Initialize the scheduler.

runNextTask

command bool runNextTask()

Run the next task if one is waiting, otherwise return immediately.

Returns:
whether a task was run -- TRUE indicates a task ran, FALSE indicates there was no task to run.

taskLoop

command void taskLoop()

Enter an infinite task-running loop. Put the MCU into a low power state when the processor is idle (task queue empty, waiting for interrupts). This call never returns.