Tim Roberts wrote:
Christian Heimes <li...@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
--
http://mail.python.org/mailman/listinfo/python-list