INtime SDK Help
INtime SDK v7.1 > About INtime > INtime Kernel > RSLs (real-time shared libraries) > RtTlsGetValue

Retrieves a value from the calling thread's specified local storage slot.

LPVOID RtTlsGetValue(
    DWORD tlsIndex


Index previously returned by a call to RtTlsAlloc.

Return Values

The value set by a call to RtTlsSetValue.  If RtTlsSetValue has not been called, the initial value 0xffffffff is returned. 
Failure. To determine the status code, call GetLastRtError.
Possible status values include:
Value Description
E_CONTEXT The TLS resource has not been initialized.
E_PARAM The tlsIndex value is out of range.
E_STATE The tlsIndex value was not allocated.

Note: If the previous value set by RtTlsSetValue was NULL, GetLastRtError returns E_OK.


Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib
See Also