Kernel: Store SchedulerThreadNode directly in Thread

Having the pointer indirection was weird and forced allocations when
adding/binding a new thread :P
This commit is contained in:
2026-08-23 14:21:27 +03:00
parent cce6e417df
commit 17813f3fcf
19 changed files with 103 additions and 144 deletions
+2 -5
View File
@@ -75,11 +75,8 @@ namespace Kernel
auto* thread = TRY(Thread::create_kernel([](void* rtl8169_ptr) {
static_cast<RTL8169*>(rtl8169_ptr)->receive_thread();
}, this));
if (auto ret = Processor::scheduler().add_thread(thread); ret.is_error())
{
delete thread;
return ret.release_error();
}
Processor::scheduler().add_thread(thread);
m_rx_thread_is_dead = false;
return {};