INtime SDK Help
RtTlsGetValue
INtime SDK v6 > 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
);

Parameters

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. 
Success.
NULL
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.

Requirements

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