Interface: tos.interfaces.TaskBasic

interface TaskBasic

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

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

Commands - Details

postTask

command error_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.

Returns:
SUCCESS if task was successfuly posted; the semantics of a non-SUCCESS return value depend on the implementation of this interface (the class of task).

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.