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"
/*****************************************************************************
* Methode: Dispatcher::start *
*---------------------------------------------------------------------------*
@ -25,14 +24,13 @@
* Parameter: *
* first Zu startender Thread. *
*****************************************************************************/
void Dispatcher::start (Thread& first) {
void Dispatcher::start(Thread& first) {
if (!active) {
active = &first;
active->start ();
active->start();
}
}
/*****************************************************************************
* Methode: Dispatcher::dispatch *
*---------------------------------------------------------------------------*
@ -41,8 +39,8 @@ void Dispatcher::start (Thread& first) {
* Parameter: *
* next Thread der die CPU erhalten soll. *
*****************************************************************************/
void Dispatcher::dispatch (Thread& next) {
void Dispatcher::dispatch(Thread& next) {
Thread* current = active;
active = &next;
current->switchTo (next);
current->switchTo(next);
}