From 890c5532da783e8d58cfbf28822bcedaa8a0c61d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 14 Nov 2007 16:32:41 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@90 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/threads.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/threads.h') 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) -- cgit v1.2.3