summaryrefslogtreecommitdiff
path: root/src/kernel/task/task.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/task/task.cpp')
-rw-r--r--src/kernel/task/task.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/task/task.cpp b/src/kernel/task/task.cpp
index ad9ce50..46fb4d4 100644
--- a/src/kernel/task/task.cpp
+++ b/src/kernel/task/task.cpp
@@ -81,7 +81,7 @@ void schedule() {
current_thread->esp = esp;
current_thread->ebp = ebp;
current_thread->eip = eip;
- if (current_thread->state == TS_RUNNING) sched_enqueue(current_thread);
+ if (current_thread->state == TS_RUNNING) sched_enqueue(current_thread, TP_LOW);
}
current_thread = sched_dequeue();
@@ -137,7 +137,7 @@ void thread_goInactive() {
void thread::wakeUp() {
if (state == TS_WAKEWAIT) {
state = TS_RUNNING;
- sched_enqueue(this);
+ sched_enqueue(this, TP_HIGH);
}
}
@@ -269,7 +269,7 @@ thread::thread(class process *proc, thread_entry entry_point, void *data, void *
proc->threads = this;
state = TS_RUNNING;
- sched_enqueue(this);
+ sched_enqueue(this, TP_MED);
}
/* Creates a new process. Creates a struct process and fills it up. */