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
2 changed files with 42 additions and 2 deletions
Showing only changes of commit 9f53040d27 - Show all commits

View File

@@ -383,6 +383,10 @@ thread_set_priority (int new_priority)
ASSERT (new_priority >= PRI_MIN);
ASSERT (new_priority <= PRI_MAX);
int old_priority = thread_get_priority ();
if (new_priority == old_priority)
return;
thread_current ()->priority = new_priority;
}