Add comparison function for thread list elements based on thread priority
This commit is contained in:
@@ -139,4 +139,7 @@ void thread_set_nice (int);
|
||||
int thread_get_recent_cpu (void);
|
||||
int thread_get_load_avg (void);
|
||||
|
||||
/* Returns true iff the priority of the first list element's thread is greater
|
||||
than that of the second list element's thread. */
|
||||
list_less_func thread_priority_greater;
|
||||
#endif /* threads/thread.h */
|
||||
|
||||
Reference in New Issue
Block a user