11 Feb
2003
11 Feb
'03
10:50 p.m.
From: Mark Storer
The MS APIs do not give you any means with which to cleanup data allocated to TLS, and they recommend you add this in DllMain.
What can you do in DllMain that you can't do with atexit, or some Loki-like priority singleton system?
Handle destruction of TLS data _at thread termination_. The atexit approach would only clean up the data at program termination, which isn't good enough. From what I recall of Loki, it won't apply here either. William E. Kempf wekempf@cox.net