Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP
Dave Angel
davea at ieee.org
Fri Jul 9 03:55:45 EDT 2010
Tim Roberts wrote:
> Christian Heimes <lists at cheimes.de> wrote:
>
>
>>> Yeah, but then we're down to file descriptors, C library locales and such as the
>>> remaining problems.
>>>
>> Don't forget errno! Every CRT might have its own errno thread local. I
>> don't know how its handled on Windows but I suspect it suffers from the
>> same problem.
>>
>
> 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.
DaveA
More information about the Python-list
mailing list