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
+4 -2
View File
@@ -76,8 +76,10 @@ extern struct runqueue *cpu_rq(unsigned int cpu);
extern cycles_t default_quantum(void);
extern bool need_resched(void);
extern struct task *current_task(void);
extern struct thread *current_thread(void);
extern struct task *get_current_task(void);
extern struct thread *get_current_thread(void);
extern void put_current_task(struct task *task);
extern void put_current_thread(struct thread *thread);
extern struct runqueue *select_rq_for_thread(struct thread *thr);
extern void schedule_thread_on_cpu(struct thread *thr);