1
0
forked from fsfw/fsfw

doc and api improvements

This commit is contained in:
2020-05-27 23:41:59 +02:00
parent 7ce505fdf9
commit 08ffe89682
4 changed files with 51 additions and 20 deletions

View File

@ -21,6 +21,10 @@ public:
CountingSemaphore (CountingSemaphore &&);
//! @brief Move assignment
CountingSemaphore & operator=(CountingSemaphore &&);
/* Same API as binary semaphore otherwise. acquire() can be called
* until there are not semaphores left and release() can be called
* until maxCount is reached. */
private:
const uint8_t maxCount;
uint8_t initCount = 0;