source: rtems/cpukit/score/inline/rtems/score/threadmp.inl @ 484a769

4.104.114.95
Last change on this file since 484a769 was 484a769, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/04/08 at 17:46:39

Convert to "bool".

  • Property mode set to 100644
File size: 1.4 KB
Line 
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-2008.
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 _RTEMS_SCORE_THREADMP_H
20# error "Never use <rtems/score/threadmp.inl> directly; include <rtems/score/threadmp.h> instead."
21#endif
22
23#include <rtems/score/mpci.h>
24
25#ifndef _RTEMS_SCORE_THREADMP_INL
26#define _RTEMS_SCORE_THREADMP_INL
27
28/**
29 *  @addtogroup ScoreThreadMP
30 *  @{
31 */
32
33/**
34 *  This function returns true if the thread in question is the
35 *  multiprocessing receive thread.
36 */
37
38RTEMS_INLINE_ROUTINE bool _Thread_MP_Is_receive (
39  Thread_Control *the_thread
40)
41{
42  return the_thread == _MPCI_Receive_server_tcb;
43}
44
45/**
46 *  This routine frees a proxy control block to the
47 *  inactive chain of free proxy control blocks.
48 */
49
50RTEMS_INLINE_ROUTINE void _Thread_MP_Free_proxy (
51  Thread_Control *the_thread
52)
53{
54  Thread_Proxy_control *the_proxy;
55
56  the_proxy = (Thread_Proxy_control *) the_thread;
57
58  _Chain_Extract( &the_proxy->Active );
59
60  _Chain_Append( &_Thread_MP_Inactive_proxies, &the_thread->Object.Node );
61}
62
63/**@}*/
64
65#endif
66/* end of include file */
Note: See TracBrowser for help on using the repository browser.