diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-21 20:32:28 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-21 20:32:28 +0200 |
commit | 2d3f1dfbd6fdfd7fe8632694bb93054ed90f7e02 (patch) | |
tree | 94437b279df7f662df1fca5e3ed69453e28283aa | |
parent | 5e0adf9fc426870d46950d606ccbb678a17f423d (diff) |
Use platform in semaphore.
-rw-r--r-- | src/semaphore.cc | 4 |
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; |