rumgedümpel

This commit is contained in:
Eggert Jung
2025-06-17 15:58:08 +02:00
parent 5b664840d8
commit 68e11c9793
4 changed files with 33 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
// vim: set noet ts=4 sw=4:
#include "dispatcher.h"
#include "core.h"
#include "../arch/core.h"
Dispatcher::Dispatcher() {
}

View File

@@ -6,7 +6,7 @@
#pragma once
#include "../thread/thread.h"
#include "../types.h"
#include "core.h"
#include "../arch/core.h"
/*! \brief The dispatcher dispatches threads and puts the scheduler's
* decisions into action.

View File

@@ -22,7 +22,8 @@ void Scheduler::ready(Thread* that) {
}
void Scheduler::resume(bool ready) {
if (!active()->kill_flag)
if (ready)
//if (!active()->kill_flag)
readyList.enqueue(*active());
Thread* thread = readyList.dequeue();
assert(thread != nullptr);