osThreadGetId() function
Return the thread ID of the current running thread.
Return value
thread ID for reference by other functions or NULL in case of error.
Notes
MUST REMAIN UNCHANGED: \b osThreadGetId shall be consistent in every CMSIS-RTOS.
osThreadGetId() calls 1 function:
![]()
osThreadGetId()