source: rtems/c/src/exec/rtems/macros/rtems/rtems/ratemon.inl @ ac7d5ef0

4.104.114.84.95
Last change on this file since ac7d5ef0 was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/95 at 17:39:37

Initial revision

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*  ratemon.inl
2 *
3 *  This file contains the macro implementation of the inlined
4 *  routines in the Rate Monotonic 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 __RATE_MONOTONIC_inl
18#define __RATE_MONOTONIC_inl
19
20/*PAGE
21 *
22 *  _Rate_monotonic_Allocate
23 *
24 */
25
26#define _Rate_monotonic_Allocate() \
27  (Rate_monotonic_Control *) \
28    _Objects_Allocate( &_Rate_monotonic_Information )
29
30/*PAGE
31 *
32 *  _Rate_monotonic_Free
33 *
34 */
35
36#define _Rate_monotonic_Free( _the_period ) \
37  _Objects_Free( &_Rate_monotonic_Information, &(_the_period)->Object )
38
39/*PAGE
40 *
41 *  _Rate_monotonic_Get
42 *
43 */
44
45#define _Rate_monotonic_Get( _id, _location ) \
46  (Rate_monotonic_Control *) \
47    _Objects_Get( &_Rate_monotonic_Information, (_id), (_location) )
48
49/*PAGE
50 *
51 *  _Rate_monotonic_Is_active
52 *
53 */
54
55#define _Rate_monotonic_Is_active( _the_period ) \
56    ((_the_period)->state == RATE_MONOTONIC_ACTIVE)
57
58/*PAGE
59 *
60 *  _Rate_monotonic_Is_inactive
61 *
62 */
63
64#define _Rate_monotonic_Is_inactive( _the_period ) \
65    ((_the_period)->state == RATE_MONOTONIC_INACTIVE)
66
67/*PAGE
68 *
69 *  _Rate_monotonic_Is_expired
70 *
71 */
72
73#define _Rate_monotonic_Is_expired( _the_period ) \
74    ((_the_period)->state == RATE_MONOTONIC_EXPIRED)
75
76/*PAGE
77 *
78 *  _Rate_monotonic_Is_null
79 *
80 */
81
82#define _Rate_monotonic_Is_null( _the_period )   ( (_the_period) == NULL  )
83
84#endif
85/* end of include file */
Note: See TracBrowser for help on using the repository browser.