summaryrefslogtreecommitdiffstats
path: root/test/sem_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-02 17:58:58 +0100
committerDavid Robillard <d@drobilla.net>2021-01-02 17:58:58 +0100
commit45a608b57f75a6e1f1d8f33a6423da5d4947502b (patch)
treede315f0e39b2d32697d44c4018b934e1f582fc73 /test/sem_test.cpp
parent045ba07debf32f643f5af7a3a4ee794f226ed22e (diff)
downloadraul-45a608b57f75a6e1f1d8f33a6423da5d4947502b.tar.gz
raul-45a608b57f75a6e1f1d8f33a6423da5d4947502b.tar.bz2
raul-45a608b57f75a6e1f1d8f33a6423da5d4947502b.zip
Make namespace name lowercase
Diffstat (limited to 'test/sem_test.cpp')
-rw-r--r--test/sem_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sem_test.cpp b/test/sem_test.cpp
index 2e8f8f8..9087b68 100644
--- a/test/sem_test.cpp
+++ b/test/sem_test.cpp
@@ -22,13 +22,13 @@
#include <thread>
static void
-wait_for_sem(Raul::Semaphore* sem)
+wait_for_sem(raul::Semaphore* sem)
{
sem->wait();
}
static void
-timed_wait_for_sem(Raul::Semaphore* sem)
+timed_wait_for_sem(raul::Semaphore* sem)
{
while (!sem->timed_wait(std::chrono::milliseconds(100))) {
}
@@ -37,7 +37,7 @@ timed_wait_for_sem(Raul::Semaphore* sem)
int
main()
{
- Raul::Semaphore sem(0);
+ raul::Semaphore sem(0);
assert(!sem.try_wait());
// Check that semaphore wakes up strict waiter
@@ -63,7 +63,7 @@ main()
assert(!sem.timed_wait(std::chrono::milliseconds(100)));
// Check that initial value works correctly
- Raul::Semaphore sem2(2);
+ raul::Semaphore sem2(2);
assert(sem2.wait());
assert(sem2.wait());
assert(!sem2.try_wait());