diff options
author | Richard Braun <rbraun@sceen.net> | 2017-02-01 23:57:12 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-02-01 23:58:26 +0100 |
commit | d09b913612712c7d58e5ee3ee20703cce63ad0b0 (patch) | |
tree | 22a91096a6c83295cd339ec77171ffd7738b1f60 /kern/thread.h | |
parent | 07a677e3c52e6af05ad15f47f95d7174103ee42a (diff) |
kern/thread: introduce global priorities
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) { |