old_level = intr_disable ();
if (t->status == THREAD_BLOCKED)
{
- list_push_back (&run_queue, &t->rq_elem);
+ list_push_back (&run_queue, &t->elem);
t->status = THREAD_READY;
}
intr_set_level (old_level);
ASSERT (!intr_context ());
old_level = intr_disable ();
- list_push_back (&run_queue, &cur->rq_elem);
+ list_push_back (&run_queue, &cur->elem);
cur->status = THREAD_READY;
schedule ();
intr_set_level (old_level);
if (list_empty (&run_queue))
return idle_thread;
else
- return list_entry (list_pop_front (&run_queue), struct thread, rq_elem);
+ return list_entry (list_pop_front (&run_queue), struct thread, elem);
}
/* Destroys T, which must be in the dying state and must not be