summaryrefslogtreecommitdiffstats
path: root/cpukit/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-26 10:15:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-30 07:56:28 +0200
commit8b15a3242e2f7089e013e1ced599850c943f751f (patch)
treecdd759c8216f54da261aba01fdac713337a60e25 /cpukit/include
parentappl-config: Add missing "the" (diff)
downloadrtems-8b15a3242e2f7089e013e1ced599850c943f751f.tar.bz2
Use alias for rtems_task_self() and pthread_self()
This may reduce the code size a bit.
Diffstat (limited to 'cpukit/include')
-rw-r--r--cpukit/include/rtems/score/threadimpl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h
index 5dfd142b92..c861e8b119 100644
--- a/cpukit/include/rtems/score/threadimpl.h
+++ b/cpukit/include/rtems/score/threadimpl.h
@@ -904,6 +904,13 @@ Thread_Control *_Thread_Get(
);
/**
+ * @brief Gets the identifier of the calling thread.
+ *
+ * @return Returns the identifier of the calling thread.
+ */
+Objects_Id _Thread_Self_id( void );
+
+/**
* @brief Gets the cpu of the thread's scheduler.
*
* @param thread The thread.