Dave Angel <da...@ieee.org> wrote: >Tim Roberts wrote: >> >> No. The multi-thread-aware CRT in Visual C++ (which is the only option >> since VS2008) puts errno in thread-local storage, so it's shared by all >> CRTs. >> >I didn't know specifically that errno is in TLS, but I will disagree >with the conclusion that a TLS entry is implicitly shared by all CRT's. >Unless the CRT for each DLL explicitly does some extra work to allow >sharing, each will have its own set of TLS variables.
Yes, I should have thought about this before posting. I checked the CRT source code, and you are correct. Every DLL that calls the C run-time startup code will do its own TlsAlloc. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list