diff options
Diffstat (limited to 'kern/thread.h')
-rw-r--r-- | kern/thread.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kern/thread.h b/kern/thread.h index 62708268..4d85c59d 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -724,4 +724,12 @@ thread_get_specific(unsigned int key) return thread_tsd_get(thread_self(), key); } +/* + * Return true if the given thread is running. + * + * Note that this check is speculative, and may not return an accurate + * result. It may only be used for optimistic optimizations. + */ +bool thread_is_running(const struct thread *thread); + #endif /* _KERN_THREAD_H */ |