sched: enforce ref-counting on current task/thread pointers
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user