Developer Reference

  • 0.9
  • 09/09/2020
  • Public Content
Contents

MKLFreeTls

Frees allocated VM/VS thread local storage memory from within DllMain routine. Use on Windows* OS only.

Syntax

void
MKLFreeTls
(
const MKL_UINT
fdwReason
)
;
Include Files
  • mkl_vml_functions_win.h
Description
The
MKLFreeTls
routine frees thread local storage (TLS) memory which has been allocated when using MKL static libraries to link into a DLL on the Windows* OS. The routine should only be used within
DllMain
.
It is only necessary to use
MKLFreeTls
for TLS data in the VM and VS domains.
Input Parameters
Name
Type
Description
fdwReason
const MKL_UINT
Reason code from the
DllMain
call.

Example

BOOL WINAPI DllMain(HINSTANCE hInst, DWORD fdwReason, LPVOID lpvReserved) { /*customer code*/ MKLFreeTls(fdwReason); /*customer code*/ }

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804