summaryrefslogtreecommitdiffstats
path: root/test/sem_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-09-21 22:15:42 -0400
committerDavid Robillard <d@drobilla.net>2023-09-23 00:17:27 -0400
commitcaf2b45cc460faced8ff264259e4cd05cb571e8a (patch)
tree3efcde1b8e747a7714a26e59008b2ce9dbe257a1 /test/sem_test.cpp
parent9c72bba439dc4c4391b73abe607d5bef02f57819 (diff)
downloadraul-caf2b45cc460faced8ff264259e4cd05cb571e8a.tar.gz
raul-caf2b45cc460faced8ff264259e4cd05cb571e8a.tar.bz2
raul-caf2b45cc460faced8ff264259e4cd05cb571e8a.zip
Use anonymous namespaces instead of "static" in tests
Diffstat (limited to 'test/sem_test.cpp')
-rw-r--r--test/sem_test.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/sem_test.cpp b/test/sem_test.cpp
index ae82c91..103e5e5 100644
--- a/test/sem_test.cpp
+++ b/test/sem_test.cpp
@@ -9,19 +9,23 @@
#include <chrono>
#include <thread>
-static void
+namespace {
+
+void
wait_for_sem(raul::Semaphore* sem)
{
sem->wait();
}
-static void
+void
timed_wait_for_sem(raul::Semaphore* sem)
{
while (!sem->timed_wait(std::chrono::milliseconds(100))) {
}
}
+} // namespace
+
int
main()
{