summaryrefslogtreecommitdiff
path: root/source/api_wrappers/linux/CSemaphoreQueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/api_wrappers/linux/CSemaphoreQueue.cpp')
-rw-r--r--source/api_wrappers/linux/CSemaphoreQueue.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/api_wrappers/linux/CSemaphoreQueue.cpp b/source/api_wrappers/linux/CSemaphoreQueue.cpp
index 448b4ee..55871ca 100644
--- a/source/api_wrappers/linux/CSemaphoreQueue.cpp
+++ b/source/api_wrappers/linux/CSemaphoreQueue.cpp
@@ -13,7 +13,11 @@
CSemaphoreQueue::CSemaphoreQueue(unsigned int MaxCount) : m_MaximumCount(MaxCount)
{
m_pEventObject = new CEventObject();
+#if defined(__APPLE__)
m_pSemaphore = new CSemaphore(0);
+#elif defined(__linux__)
+ m_pSemaphore = new CSemaphore();
+#endif
m_ObjectCollection.Add(m_pEventObject);
m_ObjectCollection.Add(m_pSemaphore);