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

@ -19,17 +19,16 @@
#include "kernel/threads/Thread.h"
class Dispatcher {
private:
Thread* active; // aktiver Thread
Thread* active; // aktiver Thread
Dispatcher(const Dispatcher &copy); // Verhindere Kopieren
Dispatcher(const Dispatcher& copy) = delete; // Verhindere Kopieren
public:
Dispatcher () : active (0) {}
void start (Thread& first);
void dispatch (Thread& next);
Thread* get_active () { return active; }
Dispatcher() : active(0) {}
void start(Thread& first);
void dispatch(Thread& next);
Thread* get_active() { return active; }
};
#endif