summaryrefslogtreecommitdiffstats
path: root/test/thread_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-18 08:23:51 +0000
committerDavid Robillard <d@drobilla.net>2014-12-18 08:23:51 +0000
commitd9a5e2143fa88e29cd3cf873d3da63798a99dde2 (patch)
treee509c0d1dd6313a384a6d90ed118db3dd164a7d4 /test/thread_test.cpp
parent3c5f16954ef622eb6804aa55769ef23f1054081b (diff)
downloadraul-d9a5e2143fa88e29cd3cf873d3da63798a99dde2.tar.gz
raul-d9a5e2143fa88e29cd3cf873d3da63798a99dde2.tar.bz2
raul-d9a5e2143fa88e29cd3cf873d3da63798a99dde2.zip
Fix thread tests on OSX.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@5499 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test/thread_test.cpp')
-rw-r--r--test/thread_test.cpp4
1 files changed, 2 insertions, 2 deletions
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;