RTEMS
cpukit
rtems
src
taskself.c
Go to the documentation of this file.
1
8
/*
9
* COPYRIGHT (c) 1989-2007.
10
* On-Line Applications Research Corporation (OAR).
11
*
12
* The license and distribution terms for this file may be
13
* found in the file LICENSE in this distribution or at
14
* http://www.rtems.org/license/LICENSE.
15
*/
16
17
#ifdef HAVE_CONFIG_H
18
#include "config.h"
19
#endif
20
21
#include <
rtems/rtems/tasksimpl.h
>
22
23
rtems_id
rtems_task_self
(
void
)
24
{
25
return
_Thread_Get_executing
()->
Object
.
id
;
26
}
_Thread_Get_executing
static __inline__ struct _Thread_Control * _Thread_Get_executing(void)
Returns the thread control block of the executing thread.
Definition:
percpu.h:878
rtems_task_self
rtems_id rtems_task_self(void)
%
Definition:
taskself.c:23
_Thread_Control::Object
Objects_Control Object
Definition:
thread.h:727
rtems_id
Objects_Id rtems_id
Values of this type identify an RTEMS object.
Definition:
types.h:99
tasksimpl.h
Classic Tasks Manager Implementation.
Objects_Control::id
Objects_Id id
Definition:
objectdata.h:43
Generated by
1.8.14