destroy added

This commit is contained in:
user
2025-12-02 17:10:23 +01:00
parent 3afa165ef3
commit dcf66e7785
3 changed files with 24 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ class Semaphore {
*/
explicit Semaphore(unsigned c = 0) : counter(c) {}
unsigned counter;
bool used;
/*! \brief Wait for access to the critical area.
*
* Enter/decrement/wait operation: If the counter is greater than 0, then