@@ -20,16 +20,12 @@ extern "C" {
#include <odp_std_types.h>
-#include <odp_atomic.h>
-
+#include <plat/odp_barrier.h>
/**
* ODP execution barrier
*/
-typedef struct odp_barrier_t {
- int count; /**< @private Thread count */
- odp_atomic_int_t bar; /**< @private Barrier counter */
-} odp_barrier_t;
+typedef plat_odp_barrier_t odp_barrier_t;
/**
@@ -48,16 +44,8 @@ void odp_barrier_init_count(odp_barrier_t *barrier, int count);
*/
void odp_barrier_sync(odp_barrier_t *barrier);
-
#ifdef __cplusplus
}
#endif
#endif
-
-
-
-
-
-
-
new file mode 100644
@@ -0,0 +1,28 @@
+/* Copyright (c) 2013, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+
+/**
+ * @file
+ *
+ * ODP execution barriers
+ */
+
+#ifndef ODP_BARRIER_H_
+#error This file should be included only into corresponding top level header
+#else
+
+#include <odp_atomic.h>
+
+/**
+ * ODP execution barrier
+ */
+typedef struct odp_barrier_t {
+ int count; /**< @private Thread count */
+ odp_atomic_int_t bar; /**< @private Barrier counter */
+} plat_odp_barrier_t;
+
+#endif