summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-02-01 23:57:12 +0100
committerRichard Braun <rbraun@sceen.net>2017-02-01 23:58:26 +0100
commitd09b913612712c7d58e5ee3ee20703cce63ad0b0 (patch)
tree22a91096a6c83295cd339ec77171ffd7738b1f60 /kern/thread.h
parent07a677e3c52e6af05ad15f47f95d7174103ee42a (diff)
kern/thread: introduce global priorities
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h6
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)
{