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 179 additions and 12 deletions
Showing only changes of commit a19d40bcca - Show all commits

View File

@@ -362,7 +362,7 @@ thread_foreach (thread_action_func *func, void *aux)
with a_ has a higher priority than that of b_. */ with a_ has a higher priority than that of b_. */
bool bool
priority_more (const struct list_elem *a_, const struct list_elem *b_, priority_more (const struct list_elem *a_, const struct list_elem *b_,
void *aux UNUSED) void *aux UNUSED)
{ {
struct thread *a = list_entry (a_, struct thread, elem); struct thread *a = list_entry (a_, struct thread, elem);
struct thread *b = list_entry (b_, struct thread, elem); struct thread *b = list_entry (b_, struct thread, elem);