From 8b15a3242e2f7089e013e1ced599850c943f751f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 26 Apr 2021 10:15:05 +0200 Subject: Use alias for rtems_task_self() and pthread_self() This may reduce the code size a bit. --- cpukit/include/rtems/score/threadimpl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/include') 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 @@ -903,6 +903,13 @@ Thread_Control *_Thread_Get( ISR_lock_Context *lock_context ); +/** + * @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. * -- cgit v1.2.3