1 | /** |
---|
2 | * @file rtems/score/threadmp.inl |
---|
3 | * |
---|
4 | * This include file contains the bodies of all inlined routines |
---|
5 | * for the multiprocessing part of thread package. |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2004. |
---|
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.com/license/LICENSE. |
---|
15 | * |
---|
16 | * $Id$ |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef __INLINE_MP_THREAD_inl |
---|
20 | #define __INLINE_MP_THREAD_inl |
---|
21 | |
---|
22 | /** |
---|
23 | * @addtogroup ScoreThreadMP |
---|
24 | * @{ |
---|
25 | */ |
---|
26 | |
---|
27 | /** |
---|
28 | * This function returns true if the thread in question is the |
---|
29 | * multiprocessing receive thread. |
---|
30 | */ |
---|
31 | |
---|
32 | RTEMS_INLINE_ROUTINE boolean _Thread_MP_Is_receive ( |
---|
33 | Thread_Control *the_thread |
---|
34 | ) |
---|
35 | { |
---|
36 | return the_thread == _Thread_MP_Receive; |
---|
37 | } |
---|
38 | |
---|
39 | /** |
---|
40 | * This routine frees a proxy control block to the |
---|
41 | * inactive chain of free proxy control blocks. |
---|
42 | */ |
---|
43 | |
---|
44 | RTEMS_INLINE_ROUTINE void _Thread_MP_Free_proxy ( |
---|
45 | Thread_Control *the_thread |
---|
46 | ) |
---|
47 | { |
---|
48 | Thread_Proxy_control *the_proxy; |
---|
49 | |
---|
50 | the_proxy = (Thread_Proxy_control *) the_thread; |
---|
51 | |
---|
52 | _Chain_Extract( &the_proxy->Active ); |
---|
53 | |
---|
54 | _Chain_Append( &_Thread_MP_Inactive_proxies, &the_thread->Object.Node ); |
---|
55 | } |
---|
56 | |
---|
57 | /**@}*/ |
---|
58 | |
---|
59 | #endif |
---|
60 | /* end of include file */ |
---|