Fix indentation in recalculate priority to match pintos style, w/ T
This commit is contained in:
@@ -405,14 +405,15 @@ thread_recalculate_priority (void)
|
|||||||
struct thread *t = thread_current ();
|
struct thread *t = thread_current ();
|
||||||
t->priority = t->base_priority;
|
t->priority = t->base_priority;
|
||||||
|
|
||||||
if (!list_empty (&t->donors_list)) {
|
if (!list_empty (&t->donors_list))
|
||||||
int max_donated_priority =
|
{
|
||||||
list_entry (list_max (&t->donors_list, priority_more, NULL),
|
int max_donated_priority =
|
||||||
struct thread, donor_elem)->priority;
|
list_entry (list_max (&t->donors_list, priority_more, NULL),
|
||||||
|
struct thread, donor_elem)->priority;
|
||||||
|
|
||||||
if (max_donated_priority > t->priority)
|
if (max_donated_priority > t->priority)
|
||||||
t->priority = max_donated_priority;
|
t->priority = max_donated_priority;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sets the current thread's nice value to NICE. */
|
/* Sets the current thread's nice value to NICE. */
|
||||||
|
|||||||
Reference in New Issue
Block a user