summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-06-26 20:48:05 +0200
committerRichard Braun <rbraun@sceen.net>2018-06-26 20:48:05 +0200
commita2f9c0d5b38b48e7a22851f81e56be50d4bf9707 (patch)
tree67b62b09ad846c8a93115ed537255303425339b3
parent30dd97fb786ef5f7ca28049684b17bdc2ee7a718 (diff)
kern/thread: update comment
-rw-r--r--kern/thread.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/kern/thread.h b/kern/thread.h
index 5b5729ce..fd729b3d 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -737,8 +737,7 @@ unsigned int thread_state(const struct thread *thread);
/*
* 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.
+ * This call isn't synchronized, and the caller may obtain an outdated value.
*/
bool thread_is_running(const struct thread *thread);