Update donate_priority to only attempt to sort position of the donee that isn't waiting for a lock

This commit is contained in:
Themis Demetriades
2024-10-23 13:29:45 +01:00
parent d82176a2e2
commit a875d5fcb4
3 changed files with 24 additions and 7 deletions

View File

@@ -151,6 +151,6 @@ void thread_set_nice (int);
int thread_get_recent_cpu (void);
int thread_get_load_avg (void);
void ready_list_reorder (void);
void ready_list_reinsert (struct thread *t);
#endif /* threads/thread.h */