1
This commit is contained in:
churl
2022-06-05 16:51:11 +02:00
parent a09e3e4a34
commit f229e43c6b
3 changed files with 22 additions and 27 deletions

View File

@ -16,7 +16,6 @@
#include "kernel/threads/Dispatch.h" #include "kernel/threads/Dispatch.h"
/***************************************************************************** /*****************************************************************************
* Methode: Dispatcher::start * * Methode: Dispatcher::start *
*---------------------------------------------------------------------------* *---------------------------------------------------------------------------*
@ -32,7 +31,6 @@ void Dispatcher::start (Thread& first) {
} }
} }
/***************************************************************************** /*****************************************************************************
* Methode: Dispatcher::dispatch * * Methode: Dispatcher::dispatch *
*---------------------------------------------------------------------------* *---------------------------------------------------------------------------*

View File

@ -19,11 +19,10 @@
#include "kernel/threads/Thread.h" #include "kernel/threads/Thread.h"
class Dispatcher { class Dispatcher {
private: private:
Thread* active; // aktiver Thread Thread* active; // aktiver Thread
Dispatcher(const Dispatcher &copy); // Verhindere Kopieren Dispatcher(const Dispatcher& copy) = delete; // Verhindere Kopieren
public: public:
Dispatcher() : active(0) {} Dispatcher() : active(0) {}

View File

@ -17,11 +17,9 @@
#include "lib/Queue.h" #include "lib/Queue.h"
class Scheduler : public Dispatcher { class Scheduler : public Dispatcher {
private: private:
Scheduler (const Scheduler &copy); // Verhindere Kopieren Scheduler(const Scheduler& copy) = delete; // Verhindere Kopieren
private:
Queue readyQueue; // auf die CPU wartende Threads Queue readyQueue; // auf die CPU wartende Threads
public: public: