
On 03/07/12 08:39, Anthony Williams wrote:
On 02/07/12 09:50, Pekka Seppänen wrote:
Currently Threads's Win32 TLS implementation uses a global static variable thread::current_thread_tls_key that is defined in src/win32/thread.cpp. As you may know, static variables have a tendency of not being allocated in a very specific order.
Oops. This was changed from direct init via a macro (which does lead to static initialization) to init via an intermediate variable (which doesn't) in the recent batch of thread updates and I didn't spot it.
I'll commit a fix for it.
Revision 79239 on trunk Anthony -- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++11 thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976