Boost logo

Boost Users :

From: William E. Kempf (wekempf_at_[hidden])
Date: 2003-02-11 17:50:11


> From: Mark Storer <mstorer_at_[hidden]>
>
> >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_at_[hidden]


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net