...
OS_TLS_GetValue()
is called by the application to retrieve the current value of a task’s TLS (thread-local storage) stored in the task’s p_tcb->TLS_Tbl[id]
. See Chapter 20, “Thread Safety of the Compiler’s Run-Time Library” for details on TLS.
Arguments
p_tcb
is a pointer to the OS_TCB
of the task you wish to retrieve the TLS from. You will get a copy of the p_tcb->TLS_Tbl[id]
entry and of course, the entry will not be changed.
...