diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/build_test.cpp | 8 | ||||
-rw-r--r-- | test/thread_test.cpp | 7 |
2 files changed, 6 insertions, 9 deletions
diff --git a/test/build_test.cpp b/test/build_test.cpp index f645588..dabc207 100644 --- a/test/build_test.cpp +++ b/test/build_test.cpp @@ -1,6 +1,6 @@ /* This file is part of Raul. - Copyright 2007-2013 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 @@ -15,7 +15,6 @@ */ #include "raul/Array.hpp" -#include "raul/barrier.hpp" #include "raul/Deletable.hpp" #include "raul/DoubleBuffer.hpp" #include "raul/Exception.hpp" @@ -24,12 +23,11 @@ #include "raul/Path.hpp" #include "raul/Process.hpp" #include "raul/RingBuffer.hpp" -#include "raul/Semaphore.hpp" -#include "raul/Socket.hpp" #include "raul/SRMWQueue.hpp" #include "raul/SRSWQueue.hpp" +#include "raul/Semaphore.hpp" +#include "raul/Socket.hpp" #include "raul/Symbol.hpp" -#include "raul/ThreadVar.hpp" #include "raul/TimeSlice.hpp" #include "raul/TimeStamp.hpp" #include "raul/URI.hpp" 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) |