Kernel: Refactor includes to reduce include dependencies

Now modifying Scheduler.h or Thread.h doesnt trigger practically a full
kernel rebuild. This required moving Mutex and RWLock of of line but
that should be fine :^)
This commit is contained in:
2026-08-19 21:32:36 +03:00
parent 8cd9e6dfa8
commit bf0bd19289
62 changed files with 321 additions and 214 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
#include <kernel/Processor.h>
#include <kernel/Scheduler.h>
#include <kernel/SchedulerQueueNode.h>
#include <kernel/ThreadBlocker.h>
#include <kernel/Timer/Timer.h>
@@ -44,7 +45,7 @@ namespace Kernel
m_block_chain = nullptr;
}
void ThreadBlocker::add_thread_to_block_queue(SchedulerQueue::Node* node)
void ThreadBlocker::add_thread_to_block_queue(SchedulerQueueNode* node)
{
SpinLockGuard _(m_lock);
@@ -60,7 +61,7 @@ namespace Kernel
m_block_chain = node;
}
void ThreadBlocker::remove_thread_from_block_queue(SchedulerQueue::Node* node)
void ThreadBlocker::remove_thread_from_block_queue(SchedulerQueueNode* node)
{
SpinLockGuard _(m_lock);