diff options
Diffstat (limited to 'cpukit/rtems/macros')
-rw-r--r-- | cpukit/rtems/macros/rtems/rtems/attr.inl | 9 | ||||
-rw-r--r-- | cpukit/rtems/macros/rtems/rtems/barrier.inl | 49 |
2 files changed, 58 insertions, 0 deletions
diff --git a/cpukit/rtems/macros/rtems/rtems/attr.inl b/cpukit/rtems/macros/rtems/rtems/attr.inl index 7f40bbdad3..fb6055325e 100644 --- a/cpukit/rtems/macros/rtems/rtems/attr.inl +++ b/cpukit/rtems/macros/rtems/rtems/attr.inl @@ -111,6 +111,15 @@ /*PAGE * + * _Attributes_Is_barrier_automatic + * + */ + +#define _Attributes_Is_barrier_automatic( _attribute_set ) \ + ( (_attribute_set) & RTEMS_BARRIER_AUTOMATIC_RELEASE ) + +/*PAGE + * * _Attributes_Is_system_task * */ diff --git a/cpukit/rtems/macros/rtems/rtems/barrier.inl b/cpukit/rtems/macros/rtems/rtems/barrier.inl new file mode 100644 index 0000000000..c51bb580c2 --- /dev/null +++ b/cpukit/rtems/macros/rtems/rtems/barrier.inl @@ -0,0 +1,49 @@ +/** + * @file rtems/rtems/barrier.inl + */ + +/* + * This file contains the macro implementation of the inlined + * routines from the Barrier Manager. + * + * COPYRIGHT (c) 1989-1999. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#ifndef _RTEMS_RTEMS_BARRIER_INL +#define _RTEMS_RTEMS_BARRIER_INL + +/* + * _Barrier_Allocate + */ +#define _Barrier_Allocate() \ + (Barrier_Control *) _Objects_Allocate( &_Barrier_Information ) + +/* + * _Barrier_Free + */ +#define _Barrier_Free( _the_barrier ) \ + _Objects_Free( &_Barrier_Information, &(_the_barrier)->Object ) + +/* + * _Barrier_Get + */ + +#define _Barrier_Get( _id, _location ) \ + (Barrier_Control *) \ + _Objects_Get( &_Barrier_Information, (_id), (_location) ) + +/* + * _Barrier_Is_null + */ +#define _Barrier_Is_null( _the_barrier ) \ + ( (_the_barrier) == NULL ) + +#endif +/* end of include file */ |