![Keil RTX51 Скачать руководство пользователя страница 30](http://html1.mh-extra.com/html/keil/rtx51/rtx51_manual_3913946030.webp)
30
RTX51 Tiny Function Library
4
os_delete_task
Summary:
#include <rtx51tny.h>
char os_delete_task
(
unsigned char
task_id
);
/*
ID
of task to stop and delete */
Description:
The
os_delete_task
function stops the task specified by the
task_id
argument. The specified task is removed from the task list.
Return Value:
The
os_delete_task
function returns a value of 0 if the task was
successfully stopped and deleted. A return value of -1 indicates the
specified task does not exist or had not been started.
See Also:
os_create_task
Example:
#include <rtx51tny.h>
#include <stdio.h>
/* for printf */
void tst_os_delete_task (void) _task_ 0
{
.
.
.
if (os_delete_task (2))
{
printf ("Couldn't stop task 2\n");
}
.
.
.
}
Содержание RTX51
Страница 4: ......
Страница 6: ......
Страница 20: ......
Страница 24: ......
Страница 39: ...RTX Tiny 39 4...
Страница 40: ......
Страница 44: ...44 RTX51 Tiny Specifications 5...
Страница 68: ...RTX51 TINY REAL TIME OPERATING SYSTEM User s Guide 2 95...