X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64a044d5a64dd92473b4cc666a6877db78bd37d3..cd15bcaf50ead53ccf9d50965312f0dc754affb4:/tests/benchmarks/tls.cpp diff --git a/tests/benchmarks/tls.cpp b/tests/benchmarks/tls.cpp index e9c780ed9a..cca9110d8a 100644 --- a/tests/benchmarks/tls.cpp +++ b/tests/benchmarks/tls.cpp @@ -5,7 +5,7 @@ // Created: 2008-07-19 // RCS-ID: $Id$ // Copyright: (c) 2008 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "bench.h" @@ -30,7 +30,7 @@ // uncomment this to also test Boost version (you will also need to link with // libboost_threads) -#define HAVE_BOOST_THREAD +//#define HAVE_BOOST_THREAD #ifdef HAVE_BOOST_THREAD #include #endif @@ -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++ ) {