Keil Logo

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 */
}
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.