summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/taskself.c
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/rtems/src/taskself.c
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 '')
-rw-r--r--cpukit/rtems/src/taskself.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/cpukit/rtems/src/taskself.c b/cpukit/rtems/src/taskself.c
deleted file mode 100644
index 193e691ce5..0000000000
--- a/cpukit/rtems/src/taskself.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * @file
- *
- * @ingroup RTEMSImplClassicTask
- *
- * @brief This source file contains the implementation of
- * rtems_task_self().
- */
-
-/*
- * COPYRIGHT (c) 1989-2007.
- * 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 <rtems/rtems/tasksimpl.h>
-
-rtems_id rtems_task_self(void)
-{
- return _Thread_Get_executing()->Object.id;
-}