summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
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)
{