RTEMS
optionsimpl.h
Go to the documentation of this file.
1 
9 /* COPYRIGHT (c) 1989-2008.
10  * On-Line Applications Research Corporation (OAR).
11  *
12  * The license and distribution terms for this file may be
13  * found in the file LICENSE in this distribution or at
14  * http://www.rtems.org/license/LICENSE.
15  */
16 
17 #ifndef _RTEMS_RTEMS_OPTIONSIMPL_H
18 #define _RTEMS_RTEMS_OPTIONSIMPL_H
19 
20 #include <rtems/rtems/options.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
41  rtems_option option_set
42 )
43 {
44  return (option_set & RTEMS_NO_WAIT) ? true : false;
45 }
46 
54  rtems_option option_set
55 )
56 {
57  return (option_set & RTEMS_EVENT_ANY) ? true : false;
58 }
59 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif
67 /* end of include file */
#define RTEMS_NO_WAIT
This option constant indicates that the task does not want to wait on the resource.
Definition: options.h:112
uint32_t rtems_option
This type is used to represent an option set.
Definition: options.h:121
RTEMS_INLINE_ROUTINE bool _Options_Is_any(rtems_option option_set)
Checks if the RTEMS_EVENT_ANY option is enabled in OPTION_SET.
Definition: optionsimpl.h:53
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait(rtems_option option_set)
Checks if the RTEMS_NO_WAIT option is enabled in option_set.
Definition: optionsimpl.h:40
#define RTEMS_EVENT_ANY
This option constant indicates that the task wishes to wait until at least one of the events of inter...
Definition: options.h:99
This header file defines options provided by the Classic API.
#define RTEMS_INLINE_ROUTINE
Gives a hint to the compiler in a function declaration to inline this function.
Definition: basedefs.h:683