|
Boost : |
Subject: Re: [boost] Thread (win32) and current_thread_tls_key issues
From: Jim Bell (Jim_at_[hidden])
Date: 2012-07-02 18:25:09
On 7/2/2012 12:11 PM, Vicente J. Botet Escriba wrote:
> Le 02/07/12 10:50, Pekka Seppänen a écrit :
>> ...
>> I propose that thread::current_thread_tls_key is moved to a static
>> function
>> that sole purpose is to return reference to that variable (and thus
>> ensure
>> that current_thread_tls_key is initialized before it is used for the
>> first
>> time). Also, move thread::current_thread_tls_init_flag to
>> thread::set_current_thread_data() to make sure this won't happen to
>> that, too.
Could this fix the test_tss_lib test failures in
<http://www.boost.org/development/tests/release/developer/thread.html>,
e.g.,
<http://www.boost.org/development/tests/release/developer/output/MinGW-w64-4-5%20jc-bell-com-boost-bin-v2-libs-thread-test-test_tss_lib-test-gcc-mingw-4-5-4-debug-threading-multi.html>?
That would be nice.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk