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

4.104.114.84.95
Last change on this file since 50cf94da was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:46:28

updated copyright to 1998

  • Property mode set to 100644
File size: 1.6 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-1998.
7 *  On-Line Applications Research Corporation (OAR).
8 *  Copyright assigned to U.S. Government, 1994.
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.OARcorp.com/rtems/license.html.
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.