Merge 'task1/priority-donation' into 'master' #14

Merged
sb3923 merged 66 commits from task1/priority-donation into master 2024-10-23 16:15:45 +00:00
4 changed files with 234 additions and 15 deletions
Showing only changes of commit bf6104200c - Show all commits

View File

@@ -395,9 +395,8 @@ thread_set_priority (int new_base_priority)
struct thread *t = thread_current (); struct thread *t = thread_current ();
int old_base_priority = t->base_priority; /* If the base priority is unchanged, do nothing. */
int old_priority = thread_get_priority (); if (new_base_priority == t->base_priority)
if (new_base_priority == old_base_priority)
return; return;
t->base_priority = new_base_priority; t->base_priority = new_base_priority;