Interface: moteiv.tos.lib.sched.Scheduler

interface Scheduler

The interface to a TinyOS scheduler, discussed in TEP 106.

Author:
Philip Levis
Date:
January 19 2005

Commands
command void init() Initialize the scheduler.
command bool runNextTask(bool l_sleep) Run the next task if one is waiting.

Commands - Details

init

command void init()

Initialize the scheduler.

runNextTask

command bool runNextTask(bool l_sleep)

Run the next task if one is waiting. If sleep is TRUE, sleep if there are no tasks to run, which possibly puts the MCU into a low power state. If sleep is FALSE, return immediately if there are no tasks to run. The return value indicates whether a task was run -- TRUE indicates a task ran, FALSE indicates there was no task to run and that sleep was called if requested.