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 04:12:24


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk