diff options
Diffstat (limited to 'kern/thread.h')
-rw-r--r-- | kern/thread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h index cc1a8a2b..38ee29b3 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -713,6 +713,13 @@ thread_get_specific(unsigned int key) } /* + * Return the last CPU on which the thread has been scheduled. + * + * This call isn't synchronized, and the caller may obtain an outdated value. + */ +unsigned int thread_cpu(const struct thread *thread); + +/* * Return the current state of the given thread. * * This call isn't synchronized, and the caller may obtain an outdated value. |