summaryrefslogtreecommitdiffstats
path: root/cpukit/score/macros/rtems/score/corebarrier.inl
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/macros/rtems/score/corebarrier.inl')
-rw-r--r--cpukit/score/macros/rtems/score/corebarrier.inl34
1 files changed, 34 insertions, 0 deletions
diff --git a/cpukit/score/macros/rtems/score/corebarrier.inl b/cpukit/score/macros/rtems/score/corebarrier.inl
new file mode 100644
index 0000000000..84b02bbd9b
--- /dev/null
+++ b/cpukit/score/macros/rtems/score/corebarrier.inl
@@ -0,0 +1,34 @@
+/* macros/corebarrier.inl
+ *
+ * This include file contains all of the inlined routines associated
+ * with core barriers.
+ *
+ * COPYRIGHT (c) 1989-2006.
+ * 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_SCORE_COREBARRIER_INL
+#define _RTEMS_SCORE_COREBARRIER_INL
+
+/*
+ * _CORE_barrier_Is_automatic
+ */
+
+#define _CORE_barrier_Is_automatic( _the_attribute ) \
+ ( (_the_attribute)->discipline == CORE_BARRIER_AUTOMATIC_RELEASE)
+
+/*
+ * _CORE_barrier_Get_number_of_waiting_threads
+ */
+
+#define _CORE_barrier_Get_number_of_waiting_threads( _the_barrier ) \
+ ( (_the_barrier)->number_of_waiting_threads )
+
+#endif
+/* end of include file */