From 56498e5bc12076330e8f1b74ce7955b16005d0aa Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Fri, 29 May 2020 00:50:44 +0200 Subject: [PATCH] linux bin semaph unlocked --- osal/linux/SemaphoreFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osal/linux/SemaphoreFactory.cpp b/osal/linux/SemaphoreFactory.cpp index db4bebb3..8d29ffe3 100644 --- a/osal/linux/SemaphoreFactory.cpp +++ b/osal/linux/SemaphoreFactory.cpp @@ -1,4 +1,5 @@ #include +#include #include const uint32_t SemaphoreIF::NO_TIMEOUT = 0; @@ -21,8 +22,7 @@ SemaphoreFactory* SemaphoreFactory::instance() { } SemaphoreIF* SemaphoreFactory::createBinarySemaphore(uint32_t arguments) { - sif::error << "Semaphore not implemented for Linux yet" << std::endl; - return nullptr; + return new BinarySemaphore(); } SemaphoreIF* SemaphoreFactory::createCountingSemaphore(uint8_t count,