Technical Support
On-Line Manuals
RL-ARM User's Guide
#include <rtl.h> OS_TID os_tsk_self (void);
The os_tsk_self function identifies the currently running task by returning its task ID.
The os_tsk_self function is in the RL-RTX library. The prototype is defined in rtl.h.
The os_tsk_self function returns the task identifier number (TID) of the currently running task.
isr_tsk_get, os_tsk_create, os_tsk_create_user
#include <rtl.h> OS_TID tsk1; __task void task1 (void) { tsk1 = os_tsk_self(); .. }