The os_tsk_delete_self function stops and deletes the currently running task. The program execution continues with the task with the next highest priority in the ready queue. The os_tsk_delete_self function is in the RL-RTX library. The prototype is defined in rtl.h. Note - Deleting a task frees all dynamic memory resources allocated to that task.
|