From 24629b4d05f7b0826c8cd1866d57ddcc4cb949d1 Mon Sep 17 00:00:00 2001 From: Zoran Aleksov Date: Fri, 4 May 2012 16:05:48 +0200 Subject: sem_open issue Previous solution is reverted back using compile switches) only for Ubuntu. For Mac OS the problem still exists and will be fixed in different patch. ST-Ericsson ID: 432287 ST-Ericsson FOSS-OUT ID: NA Change-Id: Idd50886392ceb58fb07d0c14ed5c9b88fcc7fd35 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/58222 Reviewed-by: Vlatko PISTOLOV Tested-by: Vlatko PISTOLOV --- source/api_wrappers/linux/CSemaphoreQueue.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/api_wrappers/linux/CSemaphoreQueue.cpp') 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); -- cgit v1.2.3