1

merged cleanup

This commit is contained in:
2022-07-24 21:12:31 +02:00
parent 5ff3d72bfd
commit 6481bae5f6
92 changed files with 663 additions and 755 deletions

View File

@ -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) {}