1

adapt to vector

This commit is contained in:
2022-07-21 02:44:01 +02:00
parent fa7d9d4d19
commit ae7294601d
6 changed files with 91 additions and 66 deletions

View File

@ -13,15 +13,14 @@
#include "kernel/threads/Thread.h"
#include "lib/SpinLock.h"
#include "user/lib/ArrayList.h"
#include "user/lib/Vector.h"
class Semaphore {
private:
Semaphore(const Semaphore& copy) = delete; // Verhindere Kopieren
// Queue fuer wartende Threads.
ArrayList<Thread*> waitQueue;
bse::Vector<Thread*> waitQueue;
SpinLock lock;
int counter;