diff options
author | David Robillard <d@drobilla.net> | 2017-02-18 19:41:46 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-02-18 19:41:46 +0100 |
commit | 710c5095497fa355946f0032031703ddc5104b94 (patch) | |
tree | 37dd227634e96b90bea6e3facc312cad211dd436 /test/thread_test.cpp | |
parent | f4d0fd484768fd2d4af90ad76a5e6fcff57dcd1e (diff) | |
download | raul-710c5095497fa355946f0032031703ddc5104b94.tar.gz raul-710c5095497fa355946f0032031703ddc5104b94.tar.bz2 raul-710c5095497fa355946f0032031703ddc5104b94.zip |
Fix test suite
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) |