1
0
forked from fsfw/fsfw

yay, linux bin semaph finished

This commit is contained in:
2020-05-29 00:47:54 +02:00
parent 60872f936c
commit 8676fcd9a9
7 changed files with 203 additions and 8 deletions

View File

@ -36,7 +36,7 @@ public:
SemaphoreIF* createCountingSemaphore(const uint8_t maxCount,
uint8_t initCount, uint32_t arguments = 0);
void deleteSemaphore(SemaphoreIF* mutex);
void deleteSemaphore(SemaphoreIF* semaphore);
private:
/**

View File

@ -30,7 +30,7 @@ public:
static constexpr ReturnValue_t SEMAPHORE_TIMEOUT = MAKE_RETURN_CODE(1);
//! The current semaphore can not be given, because it is not owned
static constexpr ReturnValue_t SEMAPHORE_NOT_OWNED = MAKE_RETURN_CODE(2);
static constexpr ReturnValue_t SEMAPHORE_NULLPOINTER = MAKE_RETURN_CODE(3);
static constexpr ReturnValue_t SEMAPHORE_INVALID = MAKE_RETURN_CODE(3);
/**
* Generic call to acquire a semaphore.