| Description | If a task has finished all its work or is not needed anymore, you can terminate it using the os_tsk_delete function. The os_tsk_delete function stops and deletes the task identified by task_id. The os_tsk_delete function is in the RL-RTX library. The prototype is defined in rtl.h. Note - If task_id has a value of 0, the task that is currently running is stopped and deleted. The program execution continues with the task with the next highest priority in the ready queue.
- Deleting a task frees all dynamic memory resources allocated to that task.
|