summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/inline/rtems/posix/barrier.inl
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-19 10:51:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 16:57:21 +0200
commit6b4a3770cd0749bfeb593a8c6213805fb6df65a0 (patch)
tree08be5c3f8418bf25adb1b8d16332618da5dddb3e /cpukit/posix/inline/rtems/posix/barrier.inl
parentrtems: Create barrier implementation header (diff)
downloadrtems-6b4a3770cd0749bfeb593a8c6213805fb6df65a0.tar.bz2
posix: Create barrier implementation header
Move implementation specific parts of barrier.h and barrier.inl into new header file barrierimpl.h. The barrier.h contains now only the application visible API.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/include/rtems/posix/barrierimpl.h (renamed from cpukit/posix/inline/rtems/posix/barrier.inl)45
1 files changed, 40 insertions, 5 deletions
diff --git a/cpukit/posix/inline/rtems/posix/barrier.inl b/cpukit/posix/include/rtems/posix/barrierimpl.h
index 6e439d8c66..180c169c6d 100644
--- a/cpukit/posix/inline/rtems/posix/barrier.inl
+++ b/cpukit/posix/include/rtems/posix/barrierimpl.h
@@ -16,15 +16,46 @@
* http://www.rtems.com/license/LICENSE.
*/
-#ifndef _RTEMS_POSIX_BARRIER_H
-# error "Never use <rtems/posix/barrier.inl> directly; include <rtems/posix/barrier.h> instead."
-#endif
+#ifndef _RTEMS_POSIX_BARRIERIMPL_H
+#define _RTEMS_POSIX_BARRIERIMPL_H
-#ifndef _RTEMS_POSIX_BARRIER_INL
-#define _RTEMS_POSIX_BARRIER_INL
+#include <rtems/posix/barrier.h>
#include <pthread.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * The following defines the information control block used to manage
+ * this class of objects.
+ */
+
+POSIX_EXTERN Objects_Information _POSIX_Barrier_Information;
+
+/**
+ * @brief POSIX barrier manager initialization.
+ *
+ * This routine performs the initialization necessary for this manager.
+ */
+
+void _POSIX_Barrier_Manager_initialization(void);
+
+/**
+ * @brief POSIX translate barrier return code.
+ *
+ * This routine translates SuperCore Barrier status codes into the
+ * corresponding POSIX ones.
+ *
+ * @param[in] the_barrier_status is the SuperCore status.
+ *
+ * @return the corresponding POSIX status
+ */
+int _POSIX_Barrier_Translate_core_barrier_return_code(
+ CORE_barrier_Status the_barrier_status
+);
+
/**
* @brief Allocate a barrier control block.
*
@@ -92,5 +123,9 @@ RTEMS_INLINE_ROUTINE bool _POSIX_Barrier_Is_null (
return ( the_barrier == NULL );
}
+#ifdef __cplusplus
+}
+#endif
+
#endif
/* end of include file */