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