
3 Aug
2004
3 Aug
'04
5:46 p.m.
Michael Glassford wrote:
thread at a time is allowed to call DllMain); is the same true for the tls callback? If not, the implementation of on_thread_exit(), will have to be a lot more careful to be thread-safe.
Yes. TLS callback is serialized in the same section where DllMain calls are serialized, just after calling all DllMain functions. At least this is how it works in Windows 2000 and Windows Server 2003. B.