diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/threads.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/threads.h b/src/include/threads.h index e4cd8376e..ee00039b3 100644 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -178,6 +178,9 @@ extern "C" { /** Returns the pointer to the \p Thread currently in execution.*/
#define chThdSelf() currp
+/** Returns the thread priority.*/
+#define chThdGetPriority() (currp->p_prio)
+
/** Returns the pointer to the \p Thread local storage area, if any.*/
#define chThdLS() (void *)(currp + 1)
|