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.
Examples
osThreadGetId() is referenced by 2 libraries and example projects: