chapter
tx_thread_identify
Prototype Description
Pages 15

This service returns a pointer to the currently executing thread’s Control Block. If no thread is executing, this service returns a null pointer.

Note:

If this service is called from an ISR, the return value represents the thread running

prior to the executing interrupt handler.