summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-05-21 20:32:28 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-05-21 20:32:28 +0200
commit2d3f1dfbd6fdfd7fe8632694bb93054ed90f7e02 (patch)
tree94437b279df7f662df1fca5e3ed69453e28283aa
parent5e0adf9fc426870d46950d606ccbb678a17f423d (diff)
Use platform in semaphore.
-rw-r--r--src/semaphore.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/semaphore.cc b/src/semaphore.cc
index 5bca9af..8682a6e 100644
--- a/src/semaphore.cc
+++ b/src/semaphore.cc
@@ -95,6 +95,10 @@ bool Semaphore::wait(const std::chrono::milliseconds& timeout)
}
assert(ret == WAIT_OBJECT_0);
+#elif DG_PLATFORM == DG_PLATFORM_OSX
+
+ // TODO: sem_timedwait not implemented on OSX
+
#else
struct timespec ts;