|
|
1.1 ! root 1: Sample: Using TLS to Store Thread-Specific Data in a DLL ! 2: ! 3: Sample: ! 4: ! 5: The TLS sample demonstrates using TLS (thread local storage) ! 6: to store thread-specific data in a DLL. As each thread ! 7: attaches, the memory is alloc'd and filled. As each thread ! 8: detaches, it is retreived and as the process detaches, the ! 9: TLS is freed. This is a very basic sample, and the calls ! 10: into the DLL that cause TLS to be alloc'd and filled do not ! 11: really do anything, however this should be a good basis to ! 12: build TLS on. ! 13:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.