Update donate_priority to only attempt to sort position of the donee that isn't waiting for a lock
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user