summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/macros/rtems/rtems/barrier.inl
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/macros/rtems/rtems/barrier.inl')
-rw-r--r--cpukit/rtems/macros/rtems/rtems/barrier.inl49
1 files changed, 49 insertions, 0 deletions
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 */