Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP
Tim Roberts
timr at probo.com
Sat Jul 10 15:41:02 EDT 2010
Dave Angel <davea at 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, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list