INtime SDK Help
RtTlsSetValue
INtime SDK v6 > About INtime > INtime Kernel > RSLs (real-time shared libraries) > RtTlsSetValue

Stores a value in the calling thread's local storage slot for a specified index.

BOOLEAN RtTlsSetValue(
    DWORD tlsIndex,
    LPVOID pValue
);

Parameters

tlsIndex
Index previously returned by a call to RtTlsAlloc.
pValue
A pointer to a value to store.

Return Values

TRUE
Success.
FALSE
Failure. One of the following status values may be returned from GetLastRtError:
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 is not allocated.

Requirements

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