source: rtems/cpukit/rtems/inline/rtems/rtems/eventset.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.3 KB
Line 
1/*  inline/eventset.inl
2 *
3 *  This include file contains the information pertaining to event sets.
4 *
5 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
6 *  On-Line Applications Research Corporation (OAR).
7 *  All rights assigned to U.S. Government, 1994.
8 *
9 *  This material may be reproduced by or for the U.S. Government pursuant
10 *  to the copyright license under the clause at DFARS 252.227-7013.  This
11 *  notice must appear in all copies of this file and its derivatives.
12 *
13 *  $Id$
14 */
15
16#ifndef __INLINE_EVENT_SET_inl
17#define __INLINE_EVENT_SET_inl
18
19/*PAGE
20 *
21 *  _Event_sets_Is_empty
22 */
23
24STATIC INLINE boolean _Event_sets_Is_empty(
25  rtems_event_set the_event_set
26)
27{
28  return ( the_event_set == 0 );
29}
30
31/*PAGE
32 *
33 *  _Event_sets_Post
34 */
35
36STATIC INLINE void _Event_sets_Post(
37  rtems_event_set  the_new_events,
38  rtems_event_set *the_event_set
39)
40{
41   *the_event_set |= the_new_events;
42}
43
44/*PAGE
45 *
46 *  _Event_sets_Get
47 */
48
49STATIC INLINE rtems_event_set _Event_sets_Get(
50  rtems_event_set the_event_set,
51  rtems_event_set the_event_condition
52)
53{
54   return ( the_event_set & the_event_condition );
55}
56
57/*PAGE
58 *
59 *  _Event_sets_Clear
60 */
61
62STATIC INLINE rtems_event_set _Event_sets_Clear(
63 rtems_event_set the_event_set,
64 rtems_event_set the_mask
65)
66{
67   return ( the_event_set & ~(the_mask) );
68}
69
70#endif
71/* end of include file */
Note: See TracBrowser for help on using the repository browser.