]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/benchmarks/tls.cpp
better variant support, fixes #11114
[wxWidgets.git] / tests / benchmarks / tls.cpp
index e9c780ed9a3e78bdc358382aa9fa37ed364a0e45..b187566c17d85184b72d7273bb76f012da37bf55 100644 (file)
@@ -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 <boost/thread/tss.hpp>
 #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++ )
     {