#include <rtl.h>
OS_RESULT os_tsk_delete (
OS_TID task_id ); /* Id of the task to delete */
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.
Return Value
The os_tsk_delete function returns OS_R_OK if the task was
successfully stopped and deleted. In all other cases, for example if
the task with task_id does not exist or is not running, the
function returns OS_R_NOK.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.