diff options
Diffstat (limited to 'test/thread_test.cpp')
-rw-r--r-- | test/thread_test.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/thread_test.cpp b/test/thread_test.cpp index d3983c0..3d1fc8b 100644 --- a/test/thread_test.cpp +++ b/test/thread_test.cpp @@ -1,6 +1,6 @@ /* This file is part of Raul. - Copyright 2007-2014 David Robillard <http://drobilla.net> + Copyright 2007-2017 David Robillard <http://drobilla.net> Raul is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -19,13 +19,12 @@ #include <thread> #include "raul/Semaphore.hpp" -#include "raul/ThreadVar.hpp" using namespace std; using namespace Raul; -Raul::ThreadVar<int> var(0); -std::atomic<int> n_errors(0); +thread_local int var(0); +std::atomic<int> n_errors(0); static void wait_for_sem(Semaphore* sem) |