Kernel: Move current and idle thread to Processor

This commit is contained in:
2024-03-08 23:24:18 +02:00
parent e636dce919
commit 2420886c2c
5 changed files with 49 additions and 37 deletions

View File

@@ -38,7 +38,7 @@ namespace Kernel
private:
Scheduler() = default;
void set_current_thread_sleeping_impl(uint64_t wake_time);
void set_current_thread_sleeping_impl(Semaphore* semaphore, uint64_t wake_time);
[[nodiscard]] bool save_current_thread();
void advance_current_thread();
@@ -54,9 +54,6 @@ namespace Kernel
SchedulerQueue m_active_threads;
SchedulerQueue m_blocking_threads;
Thread* m_idle_thread { nullptr };
SchedulerQueue::Node* m_current_thread { nullptr };
friend class Process;
};