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/posix | |
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/posix/src/pthreadself.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/cpukit/posix/src/pthreadself.c b/cpukit/posix/src/pthreadself.c deleted file mode 100644 index db5f2f189d..0000000000 --- a/cpukit/posix/src/pthreadself.c +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @file - * - * @ingroup POSIXAPI - * - * @brief Function returns the ID of the Calling Thread - */ - -/* - * 16.1.6 Get Calling Thread's ID, p1003.1c/Draft 10, p. 152 - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include <pthread.h> - -#include <rtems/score/percpu.h> -#include <rtems/score/thread.h> - -pthread_t pthread_self( void ) -{ - return _Thread_Get_executing()->Object.id; -} |