4.104.115
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-1999. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <rtems/itron.h> |
---|
17 | |
---|
18 | #include <rtems/score/thread.h> |
---|
19 | #include <rtems/score/userext.h> |
---|
20 | #include <rtems/score/wkspace.h> |
---|
21 | #include <rtems/score/apiext.h> |
---|
22 | #include <rtems/score/sysstate.h> |
---|
23 | |
---|
24 | #include <rtems/itron/task.h> |
---|
25 | |
---|
26 | /* |
---|
27 | * get_tid - Get Task Identifier |
---|
28 | */ |
---|
29 | |
---|
30 | ER get_tid( |
---|
31 | ID *p_tskid |
---|
32 | ) |
---|
33 | { |
---|
34 | /* |
---|
35 | * This does not support multiprocessing. The id handling will have |
---|
36 | * to be enhanced to support multiprocessing. |
---|
37 | */ |
---|
38 | |
---|
39 | *p_tskid = _Objects_Get_index( _Thread_Executing->Object.id ); |
---|
40 | return E_OK; |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.