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

4.104.114.84.95
Last change on this file since 08311cc3 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • 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-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#ifndef __RATE_MONOTONIC_inl
17#define __RATE_MONOTONIC_inl
18
19/*PAGE
20 *
21 *  _Rate_monotonic_Allocate
22 *
23 */
24
25#define _Rate_monotonic_Allocate() \
26  (Rate_monotonic_Control *) \
27    _Objects_Allocate( &_Rate_monotonic_Information )
28
29/*PAGE
30 *
31 *  _Rate_monotonic_Free
32 *
33 */
34
35#define _Rate_monotonic_Free( _the_period ) \
36  _Objects_Free( &_Rate_monotonic_Information, &(_the_period)->Object )
37
38/*PAGE
39 *
40 *  _Rate_monotonic_Get
41 *
42 */
43
44#define _Rate_monotonic_Get( _id, _location ) \
45  (Rate_monotonic_Control *) \
46    _Objects_Get( &_Rate_monotonic_Information, (_id), (_location) )
47
48/*PAGE
49 *
50 *  _Rate_monotonic_Is_active
51 *
52 */
53
54#define _Rate_monotonic_Is_active( _the_period ) \
55    ((_the_period)->state == RATE_MONOTONIC_ACTIVE)
56
57/*PAGE
58 *
59 *  _Rate_monotonic_Is_inactive
60 *
61 */
62
63#define _Rate_monotonic_Is_inactive( _the_period ) \
64    ((_the_period)->state == RATE_MONOTONIC_INACTIVE)
65
66/*PAGE
67 *
68 *  _Rate_monotonic_Is_expired
69 *
70 */
71
72#define _Rate_monotonic_Is_expired( _the_period ) \
73    ((_the_period)->state == RATE_MONOTONIC_EXPIRED)
74
75/*PAGE
76 *
77 *  _Rate_monotonic_Is_null
78 *
79 */
80
81#define _Rate_monotonic_Is_null( _the_period )   ( (_the_period) == NULL  )
82
83#endif
84/* end of include file */
Note: See TracBrowser for help on using the repository browser.