RTEMS
Main Page
Related Pages
Modules
+
Classes
Class List
Class Index
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Functions
_
b
c
g
m
p
r
s
t
u
v
+
Variables
_
b
c
r
+
Typedefs
b
c
f
h
i
o
p
r
s
t
u
w
+
Enumerations
c
h
i
m
o
p
r
s
t
w
+
Enumerator
c
h
i
m
p
r
s
t
w
+
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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