Supplementing Generated C : Scheduler Package : Controlling a Task

Controlling a Task

Calling sched_create_task puts the new task in stopped status. To make it ready, call:

sched_start(te)

 

where te is a pointer to the descriptor returned by sched_create_task for this task. In a similar manner, there are routines which take the other Rational Statemate actions on such tasks:

sched_stop(te)
sched_suspend(te)
sched_resume(te)