rumgedümpel
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// vim: set noet ts=4 sw=4:
|
||||
|
||||
#include "dispatcher.h"
|
||||
#include "core.h"
|
||||
#include "../arch/core.h"
|
||||
|
||||
Dispatcher::Dispatcher() {
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user