Merge implementations of priority scheduling form Themis and Saleh #10

Closed
td1223 wants to merge 13 commits from task1/priority-scheduling into task1/merged/priority-scheduling
4 changed files with 22 additions and 139 deletions
Showing only changes of commit f1fa7d2ffb - Show all commits

View File

@@ -603,7 +603,7 @@ allocate_tid (void)
than that of the second list element's thread. */ than that of the second list element's thread. */
bool bool
thread_priority_greater (const struct list_elem *a, const struct list_elem *b, thread_priority_greater (const struct list_elem *a, const struct list_elem *b,
void *aux) void *aux)
{ {
struct thread *ta = list_entry (a, struct thread, elem); struct thread *ta = list_entry (a, struct thread, elem);
struct thread *tb = list_entry (b, struct thread, elem); struct thread *tb = list_entry (b, struct thread, elem);