Keil RTX51 Manual page 31

Table of Contents

Advertisement

RTX Tiny
os_running_task_id
Summary:
Description:
Return Value:
See Also:
Example:
#include <rtx51tny.h>
char os_running_task_id (void);
The os_running_task_id function determines the task id of the
currently executing task function.
The os_running_task_id function returns the task ID of the cur-
rently executing task. This value is a number in the range 0 to 15.
os_create_task, os_delete_task
#include <rtx51tny.h>
#include <stdio.h>
void tst_os_running_task (void) _task_ 3
{
unsigned char tid;
tid = os_running_task_id ();
/* tid = 3 */
}
/* for printf */
31
4

Advertisement

Table of Contents
loading

Table of Contents