aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/kernel/include/chthreads.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/os/kernel/include/chthreads.h b/os/kernel/include/chthreads.h
index 421a3e23f..91b8b2fdf 100644
--- a/os/kernel/include/chthreads.h
+++ b/os/kernel/include/chthreads.h
@@ -270,11 +270,12 @@ typedef msg_t (*tfunc_t)(void *);
/**
* @brief Verifies if the current thread has a termination request pending.
+ * @note This function can be called in any context.
*
- * @retval TRUE termination request pended.
- * @retval FALSE termination request not pended.
+ * @retval TRUE termination request pending.
+ * @retval FALSE termination request not pending.
*
- * @api
+ * @special
*/
#define chThdShouldTerminate() (currp->p_flags & THD_TERMINATE)