chanegd wxTlsValue to be pointer-like instead of value-like which doesn't work for UDTs; use __thread keyword with mingw32 >= 4.3 too; use library-based thread-specific variables support in wxString cache now that it is fixed to work there; finally added a unit test for TLS stuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -176,7 +176,8 @@ BENCHMARK_FUNC(BoostTLS)
|
||||
|
||||
BENCHMARK_FUNC(wxTLS)
|
||||
{
|
||||
static wxTLS_TYPE(int) s_global;
|
||||
static wxTLS_TYPE(int) s_globalVar;
|
||||
#define s_global wxTLS_VALUE(s_globalVar)
|
||||
|
||||
for ( int n = 0; n < NUM_ITER; n++ )
|
||||
{
|
||||
|
Reference in New Issue
Block a user