Export (0) Print
Expand All

TlsFree

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function releases a thread local storage (TLS) index, making it available for reuse.


BOOL TlsFree(
  DWORD dwTlsIndex
);

dwTlsIndex

[in] Specifies a TLS index that was allocated by the TlsAlloc function.

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

If the threads of the process have allocated dynamic storage and used the TLS index to store pointers to this storage, they should free the storage before calling TlsFree.

The TlsFree function does not free dynamic storage that has been associated with the TLS index.

It is expected that DLLs only call this function during their process detach routine.

For a brief discussion of typical uses of the TLS functions, see the Remarks section of the TlsAlloc function.

Headerwinbase.h
Librarycoredll.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

ADD
Show:
© 2014 Microsoft