1
0
forked from fsfw/fsfw

tweaked factory to have configurability

This commit is contained in:
2020-05-27 19:56:02 +02:00
parent b4065c7764
commit eabee85ba9
3 changed files with 44 additions and 4 deletions

View File

@ -13,8 +13,9 @@ class CountingSemaphoreUsingTask: public SemaphoreIF {
public:
CountingSemaphoreUsingTask(uint8_t count, uint8_t initCount);
ReturnValue_t acquire(uint32_t timeoutMs);
ReturnValue_t release();
ReturnValue_t acquire(uint32_t timeoutMs) override;
ReturnValue_t release() override;
uint8_t getSemaphoreCounter() override;
private:
TaskHandle_t handle;