diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-26 10:15:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-04-30 07:56:28 +0200 |
commit | 8b15a3242e2f7089e013e1ced599850c943f751f (patch) | |
tree | cdd759c8216f54da261aba01fdac713337a60e25 /cpukit/include/rtems/score/threadimpl.h | |
parent | appl-config: Add missing "the" (diff) | |
download | rtems-8b15a3242e2f7089e013e1ced599850c943f751f.tar.bz2 |
Use alias for rtems_task_self() and pthread_self()
This may reduce the code size a bit.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/score/threadimpl.h | 7 |
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. |