merged cleanup
This commit is contained in:
@ -8,8 +8,8 @@
|
||||
* Autor: Michael Schoettner, 2.9.2016 *
|
||||
*****************************************************************************/
|
||||
|
||||
#ifndef __Semaphore_include__
|
||||
#define __Semaphore_include__
|
||||
#ifndef Semaphore_include__
|
||||
#define Semaphore_include__
|
||||
|
||||
#include "kernel/threads/Thread.h"
|
||||
#include "lib/SpinLock.h"
|
||||
@ -17,8 +17,6 @@
|
||||
|
||||
class Semaphore {
|
||||
private:
|
||||
Semaphore(const Semaphore& copy) = delete; // Verhindere Kopieren
|
||||
|
||||
// Queue fuer wartende Threads.
|
||||
bse::vector<unsigned int> wait_queue;
|
||||
SpinLock lock;
|
||||
@ -26,6 +24,8 @@ private:
|
||||
int counter;
|
||||
|
||||
public:
|
||||
Semaphore(const Semaphore& copy) = delete; // Verhindere Kopieren
|
||||
|
||||
// Konstruktor: Initialisieren des Semaphorzaehlers
|
||||
Semaphore(int c) : wait_queue(true), counter(c) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user