summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/sem_test.cpp4
-rw-r--r--test/thread_test.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/sem_test.cpp b/test/sem_test.cpp
index 4211ce3..03c3748 100644
--- a/test/sem_test.cpp
+++ b/test/sem_test.cpp
@@ -26,7 +26,7 @@ using namespace std;
using namespace Raul;
static void
-wait(Semaphore* sem)
+wait_for_sem(Semaphore* sem)
{
while (true) {
if (sem->timed_wait(250)) {
@@ -54,7 +54,7 @@ main()
return 1;
}
- std::thread waiter(wait, &sem);
+ std::thread waiter(wait_for_sem, &sem);
sleep(1);
diff --git a/test/thread_test.cpp b/test/thread_test.cpp
index 7fcaf9f..fd68e97 100644
--- a/test/thread_test.cpp
+++ b/test/thread_test.cpp
@@ -28,7 +28,7 @@ Raul::ThreadVar<int> var(0);
std::atomic<int> n_errors(0);
static void
-wait(Semaphore* sem)
+wait_for_sem(Semaphore* sem)
{
var = 41;
cout << "[Waiter] Waiting for signal..." << endl;
@@ -45,7 +45,7 @@ int
main()
{
Semaphore sem(0);
- std::thread waiter(wait, &sem);
+ std::thread waiter(wait_for_sem, &sem);
var = 24;