Supplementing Generated C : Scheduler Package : Aborting a Task

Aborting a Task

The following routine aborts the task identified by the descriptor te. It de-allocates its stack and its control blocks:

sched_abort_task(te)
int te;

The sched_abort_task function should be called only if the task is not invoked again. If this is not the case, use the sched_stop function.