RTX166 Tiny User's Guide

os_running_task_id

Summary
#include <rtx166t.h>

int os_running_task_id (void);
Description

The os_running_task_id function determines the task_id of the task currently executing.

Note

  • This function is part of the RTX166 Tiny Real-Time Operating System.
Return Value

The os_running_task_id function returns the task_id of the task currently executing. This value is a number in the range 0-31.

Example
#include <rtx166t.h>

void tst_os_running_task (void) _task_ 3
{
int tid;

tid = os_running_task_id ();    /* tid = 3 */
}