From 2d3f1dfbd6fdfd7fe8632694bb93054ed90f7e02 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 21 May 2016 20:32:28 +0200 Subject: Use platform in semaphore. --- src/semaphore.cc | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3