Boost logo

Boost :

Subject: Re: [boost] Thread (win32) and current_thread_tls_key issues
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2012-07-03 03:39:31

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.


Author of C++ Concurrency in Action
just::thread C++11 thread library   
Just Software Solutions Ltd
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976

Boost list run by bdawes at, gregod at, cpdaniel at, john at