diff options
Diffstat (limited to 'kern/thread.h')
-rw-r--r-- | kern/thread.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h index 0d9c7861..14fd8669 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -266,6 +266,12 @@ thread_priority(const struct thread *thread) return thread->sched_data.priority; } +/* + * The global priority of a thread is meant to be compared against + * another global priority to determine which thread has higher priority. + */ +unsigned int thread_global_priority(const struct thread *thread); + static inline struct thread * thread_from_tcb(struct tcb *tcb) { |