The following routine aborts the task identified by the descriptor
te
. It de-allocates its stack and its control blocks:The
sched_abort_task
function should be called only if the task is not invoked again. If this is not the case, use thesched_stop
function.