Interface: moteiv.tos.lib.sched.TaskBasic

interface TaskBasic

The basic TinyOS task interface, as discussed in TEP 106.

Author:
Philip Levis
Date:
January 12, 2005

Commands
command result_t postTask() Post this task to the TinyOS scheduler.
command result_t postUrgentTask()

Events
event void runTask() Event from the scheduler to run this task.

Commands - Details

postTask

command result_t postTask()

Post this task to the TinyOS scheduler. At some later time, depending on the scheduling policy, the scheduler will signal the run() event. SUCCESS means the task was successfuly posted; the semantics of a non-SUCCESS return value depend on the implementation of this interface (the class of task).

postUrgentTask

command result_t postUrgentTask()

Events - Details

runTask

event void runTask()

Event from the scheduler to run this task. Following the TinyOS concurrency model, the codes invoked from run() signals execute atomically with respect to one another, but can be preempted by async commands/events.