source: rtems/c/src/exec/score/macros/coremutex.inl @ 03f2154e

4.104.114.84.95
Last change on this file since 03f2154e was 03f2154e, checked in by Joel Sherrill <joel.sherrill@…>, on 04/22/97 at 17:20:27

headers updated to reflect new style copyright notice as part
of switching to the modified GNU GPL.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*  macros/coremutex.h
2 *
3 *  This include file contains all of the inlined routines associated
4 *  with core mutexes.
5 *
6 *  COPYRIGHT (c) 1989-1997.
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 in
11 *  the file LICENSE in this distribution or at
12 *  http://www.OARcorp.com/rtems/license.html.
13 *
14 *  $Id$
15 */
16
17#ifndef __MACROS_CORE_MUTEX_h
18#define __MACROS_CORE_MUTEX_h
19
20
21/*PAGE
22 *
23 *  _CORE_mutex_Is_locked
24 *
25 */
26 
27#define _CORE_mutex_Is_locked( _the_mutex ) \
28  ( (_the_mutex)->lock == CORE_MUTEX_LOCKED )
29 
30/*PAGE
31 *
32 *  _CORE_mutex_Is_fifo
33 *
34 */
35 
36#define _CORE_mutex_Is_fifo( _the_attribute ) \
37  ( (_the_attribute)->discipline == CORE_MUTEX_DISCIPLINES_FIFO )
38 
39/*PAGE
40 *
41 *  _CORE_mutex_Is_priority
42 *
43 */
44
45#define _CORE_mutex_Is_priority( _the_attribute ) \
46  ( (_the_attribute)->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY )
47
48/*PAGE
49 *
50 *  _CORE_mutex_Is_inherit_priority
51 *
52 */
53 
54#define _CORE_mutex_Is_inherit_priority( _the_attribute ) \
55  ( (_the_attribute)->discipline == \
56                               CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT )
57 
58/*PAGE
59 *
60 *  _CORE_mutex_Is_priority_ceiling
61 *
62 */
63 
64#define _CORE_mutex_Is_priority_ceiling( _the_attribute )\
65  ( (_the_attribute)->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING )
66 
67/*PAGE
68 *
69 *  _CORE_mutex_Is_nesting_allowed
70 *
71 */
72 
73#define _CORE_mutex_Is_nesting_allowed( _the_attribute ) \
74  ( (_the_attribute)->allow_nesting == TRUE )
75
76#endif
77/* end of include file */
Note: See TracBrowser for help on using the repository browser.