linux bin semaph unlocked

This commit is contained in:
Robin Müller 2020-05-29 00:50:44 +02:00
parent 8676fcd9a9
commit 56498e5bc1
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#include <framework/tasks/SemaphoreFactory.h>
#include <framework/osal/linux/BinarySemaphore.h>
#include <framework/serviceinterface/ServiceInterfaceStream.h>
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,