fix make for a21, PIDs are always ints, linter things
This commit is contained in:
@@ -24,15 +24,17 @@ class Thread;
|
||||
class Semaphore {
|
||||
// Prevent copies and assignments
|
||||
Semaphore(const Semaphore&) = delete;
|
||||
Semaphore(Semaphore&&) = delete;
|
||||
Semaphore& operator=(const Semaphore&) = delete;
|
||||
Semaphore& operator=(Semaphore&&) = delete;
|
||||
unsigned counter;
|
||||
Queue<Thread> waiting;
|
||||
|
||||
public:
|
||||
/*! \brief Constructor; initialized the counter with provided value `c`
|
||||
* \param c Initial counter value
|
||||
/*! \param init Initial counter value
|
||||
*/
|
||||
explicit Semaphore(unsigned c = 0) : counter(c) {}
|
||||
explicit Semaphore(unsigned init = 0) : counter(init) {}
|
||||
~Semaphore() = default;
|
||||
|
||||
/*! \brief Wait for access to the critical area.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user