sched: enforce ref-counting on current task/thread pointers

This commit is contained in:
2026-04-01 18:17:05 +01:00
parent 15c2207ab9
commit 512356ac2d
28 changed files with 364 additions and 103 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ static void hang(void)
void background_thread(void)
{
struct task *self = current_task();
struct thread *thread = current_thread();
struct task *self = get_current_task();
struct thread *thread = get_current_thread();
printk("background_thread() running on processor %u", this_cpu());
milli_sleep(1000);