source: rtems/c/src/exec/rtems/inline/message.inl @ 3652ad35

4.104.114.84.95
Last change on this file since 3652ad35 was 3652ad35, checked in by Joel Sherrill <joel.sherrill@…>, on 09/19/95 at 14:53:29

Minor bug fixes to get all targets compilable and running. The
single biggest changes were the expansion of the workspace size
macro to include other types of objects and the increase in the
minimum stack size for most CPUs.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*  message.inl
2 *
3 *  This include file contains the static inline implementation of all
4 *  inlined routines in the Message Manager.
5 *
6 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
7 *  On-Line Applications Research Corporation (OAR).
8 *  All rights assigned to U.S. Government, 1994.
9 *
10 *  This material may be reproduced by or for the U.S. Government pursuant
11 *  to the copyright license under the clause at DFARS 252.227-7013.  This
12 *  notice must appear in all copies of this file and its derivatives.
13 *
14 *  $Id$
15 */
16
17#ifndef __MESSAGE_QUEUE_inl
18#define __MESSAGE_QUEUE_inl
19
20#include <rtems/core/wkspace.h>
21
22/*PAGE
23 *
24 *  _Message_queue_Is_null
25 *
26 */
27
28STATIC INLINE boolean _Message_queue_Is_null (
29  Message_queue_Control *the_message_queue
30)
31{
32  return ( the_message_queue == NULL  );
33}
34
35
36/*PAGE
37 *
38 *  _Message_queue_Free
39 *
40 */
41
42STATIC INLINE void _Message_queue_Free (
43  Message_queue_Control *the_message_queue
44)
45{
46  _Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
47}
48
49/*PAGE
50 *
51 *  _Message_queue_Get
52 *
53 */
54
55STATIC INLINE Message_queue_Control *_Message_queue_Get (
56  Objects_Id         id,
57  Objects_Locations *location
58)
59{
60  return (Message_queue_Control *)
61     _Objects_Get( &_Message_queue_Information, id, location );
62}
63
64#endif
65/* end of include file */
Note: See TracBrowser for help on using the repository browser.