Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Running a Program on the Target Win32 Date and Time Management Win32 Thread Local Storage (TLS) Win32 API Function Cross Reference Alternate Heap Manager RTTHeap Compiling and Linking with On Time RTOS-32 |
Win32 Thread Local Storage (TLS)RTTarget-32 will correctly set up a TLS data segment if one is found in the main application .EXE file or in a statically referenced DLL. Note that only one TLS data segment (either in the .EXE or in one DLL) is supported. In addition, Win32 functions which operate on TLS data are supported (e.g., TlsAlloc, TlsSetValue, Get/SetLastError, etc.). By default, 16 TLS slots are available for applications. The first slot (index 0) is used for the static TLS data segment. The number of available TLS slots can be changed using RTTarget-32 native API function RTSetTlsSlots. RTTarget-32 does not contain a scheduler for multithreading. However, RTTarget-32's TLS management is fully compatible with RTKernel-32, which can be used to implement separate TLS data and thread variables for each thread.
|