diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-14 16:32:41 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-14 16:32:41 +0000 |
commit | 890c5532da783e8d58cfbf28822bcedaa8a0c61d (patch) | |
tree | 617e200bc65fe60a4770f5dac26d1a42cccea48c /src/include/threads.h | |
parent | e776216d02920673266e31d553078f4edec4a264 (diff) | |
download | ChibiOS-890c5532da783e8d58cfbf28822bcedaa8a0c61d.tar.gz ChibiOS-890c5532da783e8d58cfbf28822bcedaa8a0c61d.tar.bz2 ChibiOS-890c5532da783e8d58cfbf28822bcedaa8a0c61d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@90 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/threads.h')
-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)
|